Skip to content

Commit 83d75d3

Browse files
committed
Reduce space from bottom to 12px on browser cues
1 parent d6e2c9a commit 83d75d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotcom-rendering/src/components/LoopVideo.importable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import type {
2525
} from './LoopVideoPlayer';
2626
import { LoopVideoPlayer } from './LoopVideoPlayer';
2727
import { ophanTrackerWeb } from './YoutubeAtom/eventEmitters';
28+
import { space } from '@guardian/source/foundations';
2829

2930
const videoContainerStyles = css`
3031
z-index: ${getZIndex('loop-video-container')};
@@ -491,7 +492,7 @@ export const LoopVideo = ({
491492

492493
const track = vidRef.current.textTracks[0];
493494
if (!track?.cues) return;
494-
const pxFromBottom = 16;
495+
const pxFromBottom = space[3];
495496
const videoHeight =
496497
vidRef.current.getBoundingClientRect().height ||
497498
vidRef.current.clientHeight ||

0 commit comments

Comments
 (0)