From a74230ce8acf82cf4a21e818c4f2c8912e5f053d Mon Sep 17 00:00:00 2001 From: moris Date: Thu, 3 Apr 2025 15:41:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=83=A0=E3=83=8D=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=81=8C=E3=81=AF=E3=81=BF=E5=87=BA=E3=81=95=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/(DefaultStyle)/[slug]/grid.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routes/(DefaultStyle)/[slug]/grid.svelte b/src/routes/(DefaultStyle)/[slug]/grid.svelte index 8ac7850..868e6cf 100644 --- a/src/routes/(DefaultStyle)/[slug]/grid.svelte +++ b/src/routes/(DefaultStyle)/[slug]/grid.svelte @@ -50,13 +50,12 @@ justify-content: center; aspect-ratio: 1/0.6; max-height: 200px; + max-width: 100%; } img { - display: block; - max-width: 100%; - max-height: 100%; + width: 100%; + height: 100%; object-fit: contain; - margin-inline: auto; transition: transform .3s ease-out; } .emoji {