サムネイルがはみ出さないようにした

This commit is contained in:
moris 2025-04-03 15:41:58 +09:00
parent 2763e77dc3
commit a74230ce8a

View file

@ -50,13 +50,12 @@
justify-content: center; justify-content: center;
aspect-ratio: 1/0.6; aspect-ratio: 1/0.6;
max-height: 200px; max-height: 200px;
max-width: 100%;
} }
img { img {
display: block; width: 100%;
max-width: 100%; height: 100%;
max-height: 100%;
object-fit: contain; object-fit: contain;
margin-inline: auto;
transition: transform .3s ease-out; transition: transform .3s ease-out;
} }
.emoji { .emoji {