Skip to content

Commit 27653fb

Browse files
committed
style: Specify the gallery images' initial aspect ratio
1 parent 0c2e54d commit 27653fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/youTubePlaylistStyles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export function youTubePlaylistStyles(
2828
position: "relative",
2929
};
3030
const videoImageStyle: React.CSSProperties = {
31-
display: "block",
3231
width: "100%",
32+
aspectRatio: "16/9 auto",
33+
backgroundColor: "#D3D3D3",
3334
cursor: "pointer",
3435
};
3536
const videoCaptionStyle: React.CSSProperties = {

0 commit comments

Comments
 (0)