fix(subtitles): adjust styling for tile view (#3365)

- Increase z-index so the subtitles display over tiles.
- Add a background to the subtitle text.
- In general make the subtitles narrower.
This commit is contained in:
virtuacoplenny 2018-08-14 17:44:21 -07:00 committed by GitHub
parent 8d0d92a437
commit 87c010a9bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -2,12 +2,19 @@
bottom: 10%;
font-size: 16px;
font-weight: 1000;
left: 50%;
max-width: 50vw;
opacity: 0.80;
pointer-events: none;
position: absolute;
text-shadow: 0px 0px 1px rgba(0,0,0,0.3),
0px 1px 1px rgba(0,0,0,0.3),
1px 0px 1px rgba(0,0,0,0.3),
0px 0px 1px rgba(0,0,0,0.3);
width: 100%;
z-index: $zindex2;
transform: translateX(-50%);
z-index: $filmstripVideosZ + 1;
span {
background: black;
}
}

View File

@ -46,7 +46,9 @@ class TranscriptionSubtitles extends Component<Props> {
text += stable + unstable;
}
paragraphs.push(
<p key = { transcriptMessageID }> { text } </p>
<p key = { transcriptMessageID }>
<span>{ text }</span>
</p>
);
}
}