Skip to content

Commit c77d34b

Browse files
alexisthualaminya
authored andcommitted
fix: ratio distortion of media in sidebar
1 parent 1312f0b commit c77d34b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

styles/hydrogen.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,11 @@
248248
video,
249249
img,
250250
svg {
251-
width: unset !important;
252-
height: unset !important;
251+
object-fit: contain !important;
252+
width: auto !important;
253+
height: auto !important;
253254
max-width: 100% !important;
255+
max-height: 100% !important;
254256
}
255257
}
256258

0 commit comments

Comments
 (0)