Skip to content

Commit aab0b95

Browse files
committed
Fix icon styling for iOS users
1 parent 331f1af commit aab0b95

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/blobdash/static/main.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,21 @@ main {
421421

422422
img {
423423
grid-area: icon;
424-
height: 100%;
425-
align-self: center;
426424
justify-self: center;
425+
426+
/* This looks bad when icons aren't very square. There's a better way to do this, but
427+
it doesn't work on Safari. Thanks, Steve.
428+
See: https://stackoverflow.com/questions/57516373/image-stretching-in-flexbox-in-safari
429+
https://github.com/neptunian/react-photo-gallery/issues/174
430+
https://discourse.webflow.com/t/css-grid-stretch-in-safari-after-yesterdays-update/142799/4
431+
*/
432+
@media (width < 400px) {
433+
max-width: 3rem;
434+
}
435+
@media (width >= 400px) {
436+
height: 100%;
437+
align-self: center;
438+
}
427439
}
428440

429441
h3 {

0 commit comments

Comments
 (0)