Skip to content

Commit 2713df6

Browse files
committed
Add a min-height to self-hosted video element
1 parent 89de902 commit 2713df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dotcom-rendering/src/components/SelfHostedVideoPlayer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const videoStyles = (width: number, height: number) => css`
2828
display: block;
2929
height: auto;
3030
width: 100%;
31+
max-height: 100vh;
32+
max-height: 100svh;
3133
cursor: pointer;
3234
/* Prevents CLS by letting the browser know the space the video will take up. */
3335
aspect-ratio: ${width} / ${height};

0 commit comments

Comments
 (0)