Skip to content

Commit 1ede35e

Browse files
authored
Crop YouTube overlay image to fit aspect ratio (#13739)
1 parent 55413ee commit 1ede35e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dotcom-rendering/src/components/YoutubeAtom/YoutubeAtomPicture.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const YoutubeAtomPicture = ({
5555
// https://stackoverflow.com/questions/10844205/html-5-strange-img-always-adds-3px-margin-at-bottom
5656
// why did we add the css `vertical-align: middle;` to the img tag
5757
css={css`
58+
object-fit: cover;
5859
vertical-align: middle;
5960
`}
6061
/>

0 commit comments

Comments
 (0)