mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-463: Remove AUTHOR from YouTube preview not helpful and takes up too much room
This commit is contained in:
@@ -116,7 +116,7 @@ export default class PostBody extends React.Component {
|
||||
}
|
||||
var metadata = data.items[0].snippet;
|
||||
this.receivedYoutubeData = true;
|
||||
this.setState({youtubeUploader: metadata.channelTitle, youtubeTitle: metadata.title});
|
||||
this.setState({youtubeTitle: metadata.title});
|
||||
}
|
||||
|
||||
if (global.window.config.GoogleDeveloperKey && !this.receivedYoutubeData) {
|
||||
@@ -134,18 +134,12 @@ export default class PostBody extends React.Component {
|
||||
header = header + ' - ';
|
||||
}
|
||||
|
||||
let uploader = this.state.youtubeUploader;
|
||||
if (!uploader) {
|
||||
uploader = 'unknown';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='post-comment'>
|
||||
<h4>
|
||||
<span className='video-type'>{header}</span>
|
||||
<span className='video-title'><a href={link}>{this.state.youtubeTitle}</a></span>
|
||||
</h4>
|
||||
<h4 className='video-uploader'>{uploader}</h4>
|
||||
<div
|
||||
className='video-div embed-responsive-item'
|
||||
id={youtubeId}
|
||||
|
||||
@@ -26,11 +26,6 @@
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
.video-uploader {
|
||||
font-size: 13px;
|
||||
margin: 0 0 15px;
|
||||
}
|
||||
|
||||
.video-title {
|
||||
font-size:15px;
|
||||
margin-top:3px;
|
||||
@@ -54,4 +49,4 @@
|
||||
border-top:36px solid transparent;
|
||||
border-bottom:36px solid transparent;
|
||||
border-left:60px solid rgba(255,255,255,0.4);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user