fix: move CW overlay inside the video wrapper

This commit is contained in:
Resi Respati 2017-12-20 23:43:48 +07:00
parent b4674b321e
commit 348d8f941a
1 changed files with 1 additions and 1 deletions

View File

@ -71,11 +71,11 @@ const Video = ({ video }) => (
videoId={video.id.v[0]}
onReady={e => e.target.pauseVideo()}
/>
{video.contentWarnings.length !== 0 ? <ContentWarningBlock warnings={video.contentWarnings} /> : null}
</VideoWrapper>
<VideoMetadata>
{video.title ? <VideoTitle>{video.title}</VideoTitle> : null}
{video.description ? <p>{video.description}</p> : null}
{video.contentWarnings.length !== 0 ? <ContentWarningBlock warnings={video.contentWarnings} /> : null}
<VideoTagWrapper>
{video.tags.map(w => <VideoTagLabel key={w}>{w}</VideoTagLabel>)}
</VideoTagWrapper>