Skip to content

Commit dded63b

Browse files
committed
Ensure video not display:inline, to correct height
1 parent 2ab86fe commit dded63b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotcom-rendering/src/components/LoopVideoPlayer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { LoopVideoProgressBar } from './LoopVideoProgressBar';
99

1010
const videoStyles = (width: number, height: number) => css`
1111
position: relative;
12+
display: flex;
13+
height: auto;
1214
width: 100%;
13-
/* Find out why this is needed to align the video with its container. */
14-
margin-bottom: -3px;
1515
cursor: pointer;
1616
/* Prevents CLS by letting the browser know the space the video will take up. */
1717
aspect-ratio: ${width} / ${height};

0 commit comments

Comments
 (0)