Skip to content

Commit 9e39bb0

Browse files
committed
Ensure thumbnail image is full size of video
1 parent 8868391 commit 9e39bb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dotcom-rendering/src/components/LoopVideoPlayer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const videoStyles = (width: number, height: number) => css`
1515
cursor: pointer;
1616
/* Prevents CLS by letting the browser know the space the video will take up. */
1717
aspect-ratio: ${width} / ${height};
18+
object-fit: cover;
1819
`;
1920

2021
const playIconStyles = css`

0 commit comments

Comments
 (0)