2 parents 93b972e + 5c336f2 commit 243aad5Copy full SHA for 243aad5
1 file changed
dotcom-rendering/src/components/SubtitleOverlay.tsx
@@ -9,18 +9,18 @@ import { palette } from '../palette';
9
import type { ControlsPosition, SubtitleSize } from './SelfHostedVideoPlayer';
10
11
const subtitleOverlayStyles = (position: ControlsPosition) => css`
12
- max-width: 71%;
+ width: 100%;
13
+ display: flex;
14
+ justify-content: center;
15
pointer-events: none;
16
position: absolute;
- left: 50%;
- transform: translateX(-50%);
17
18
${position === 'top' && `top: ${space[4]}px;`};
19
${position === 'bottom' && `bottom: ${space[4]}px;`};
20
`;
21
22
const cueBoxStyles = css`
23
- width: 100%;
+ max-width: 71%;
24
margin: 0 auto;
25
text-align: center;
26
0 commit comments