From 07f008c440bd37972ce52fbf43702286ff7bd4cc Mon Sep 17 00:00:00 2001 From: eafonyang Date: Tue, 27 Oct 2026 15:07:34 +0800 Subject: [PATCH] =?UTF-8?q?style(festival):=20=E8=A7=A3=E9=99=A4=E5=9C=A3?= =?UTF-8?q?=E8=AF=9E=E8=80=81=E4=BA=BA=E5=92=8C=E5=A5=B3=E5=B7=AB=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在圣诞老人图片样式中取消 preflight 的 img max-width 限制,避免右端绝对定位容器宽度极小时图片被压缩 - 在女巫图片样式中同样取消 max-width 限制,确保图片显示正常 - 保持图片的 object-fit 和阴影效果不变 --- client/src/components/festival/christmas.css | 2 ++ client/src/components/festival/halloween.css | 2 ++ 2 files changed, 4 insertions(+) diff --git a/client/src/components/festival/christmas.css b/client/src/components/festival/christmas.css index 7673461..213c8d7 100644 --- a/client/src/components/festival/christmas.css +++ b/client/src/components/festival/christmas.css @@ -12,6 +12,8 @@ .festival-santa-thumb { width: 44px; height: 44px; + /* 解除 preflight 的 img max-width 限制:滑轨右端时绝对定位容器可用宽度极小,否则圣诞老人被压缩 */ + max-width: none; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); } diff --git a/client/src/components/festival/halloween.css b/client/src/components/festival/halloween.css index b4cd427..66a0d68 100644 --- a/client/src/components/festival/halloween.css +++ b/client/src/components/festival/halloween.css @@ -20,6 +20,8 @@ .halloween-witch-thumb { width: 44px; height: 44px; + /* 解除 preflight 的 img max-width 限制:滑轨右端时绝对定位容器可用宽度极小,否则女巫被压缩 */ + max-width: none; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }