Skip to content

Commit 1626e64

Browse files
committed
📱 Improve video grid sizing on smaller screens
1 parent 4df6f2d commit 1626e64

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎src/components/VideoCarousel.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
display: grid;
8282
grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
8383
margin-top: 2rem;
84+
gap: 0.5rem;
8485
}
8586
p {
8687
text-align: center;
@@ -91,8 +92,13 @@
9192
flex-direction: column;
9293
align-items: center;
9394
}
95+
.thumbnail-container :global(button span) {
96+
display: flex;
97+
flex-direction: column;
98+
align-items: center;
99+
}
94100
.thumbnail-image {
95-
min-height: 148px;
101+
height: 148px;
96102
aspect-ratio: 16 / 9;
97103
background-size: cover;
98104
background-position: center;
@@ -118,7 +124,7 @@
118124
}
119125
.thumbnail-image {
120126
width: 128px;
121-
min-height: 72px;
127+
height: 72px;
122128
}
123129
p {
124130
text-align: center;

0 commit comments

Comments
 (0)