We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e2c9a commit 83d75d3Copy full SHA for 83d75d3
dotcom-rendering/src/components/LoopVideo.importable.tsx
@@ -25,6 +25,7 @@ import type {
25
} from './LoopVideoPlayer';
26
import { LoopVideoPlayer } from './LoopVideoPlayer';
27
import { ophanTrackerWeb } from './YoutubeAtom/eventEmitters';
28
+import { space } from '@guardian/source/foundations';
29
30
const videoContainerStyles = css`
31
z-index: ${getZIndex('loop-video-container')};
@@ -491,7 +492,7 @@ export const LoopVideo = ({
491
492
493
const track = vidRef.current.textTracks[0];
494
if (!track?.cues) return;
- const pxFromBottom = 16;
495
+ const pxFromBottom = space[3];
496
const videoHeight =
497
vidRef.current.getBoundingClientRect().height ||
498
vidRef.current.clientHeight ||
0 commit comments