Browse Source

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.
master
virtuacoplenny 6 years ago
parent
commit
87c010a9bd
No account linked to committer's email address

+ 9
- 2
css/_transcription-subtitles.scss View File

@@ -2,12 +2,19 @@
2 2
     bottom: 10%;
3 3
     font-size: 16px;
4 4
     font-weight: 1000;
5
+    left: 50%;
6
+    max-width: 50vw;
5 7
     opacity: 0.80;
8
+    pointer-events: none;
6 9
     position: absolute;
7 10
     text-shadow: 0px 0px 1px rgba(0,0,0,0.3),
8 11
     0px 1px 1px rgba(0,0,0,0.3),
9 12
     1px 0px 1px rgba(0,0,0,0.3),
10 13
     0px 0px 1px rgba(0,0,0,0.3);
11
-    width: 100%;
12
-    z-index: $zindex2;
14
+    transform: translateX(-50%);
15
+    z-index: $filmstripVideosZ + 1;
16
+
17
+    span {
18
+        background: black;
19
+    }
13 20
 }

+ 3
- 1
react/features/subtitles/components/TranscriptionSubtitles.web.js View File

@@ -46,7 +46,9 @@ class TranscriptionSubtitles extends Component<Props> {
46 46
                     text += stable + unstable;
47 47
                 }
48 48
                 paragraphs.push(
49
-                    <p key = { transcriptMessageID }> { text } </p>
49
+                    <p key = { transcriptMessageID }>
50
+                        <span>{ text }</span>
51
+                    </p>
50 52
                 );
51 53
             }
52 54
         }

Loading…
Cancel
Save