PLT-463: Remove AUTHOR from YouTube preview not helpful and takes up too much room

This commit is contained in:
Florian Orben
2015-10-17 02:52:46 +02:00
parent 8ea76b0ada
commit aa40f88bbb
2 changed files with 2 additions and 13 deletions

View File

@@ -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}

View File

@@ -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);
}
}