From 45197947cfda0c327df3d7078f8f2f278c40a195 Mon Sep 17 00:00:00 2001 From: eafonyang Date: Tue, 27 Oct 2026 15:07:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(festival):=20=E8=A7=A3=E9=99=A4=E8=8A=82?= =?UTF-8?q?=E6=97=A5=E5=A4=B4=E5=83=8F=E7=9A=84=E5=9B=BE=E7=89=87=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 圣诞老人头像样式中添加 max-width: none 解除预设最大宽度限制 - 女巫头像样式中添加 max-width: none 解除预设最大宽度限制 - 解决滑轨右端绝对定位容器宽度极小时头像被压缩的问题 --- client/src/components/festival/christmas.css | 4 +++- client/src/components/festival/halloween.css | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/festival/christmas.css b/client/src/components/festival/christmas.css index 7673461..ba9cd0b 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)); } @@ -27,7 +29,7 @@ /* 占位与原喇叭保持 24px 一致,大小铃铛仅在视觉层变化。 */ .festival-bell-slot { display: block; - position: relative; + position: relative; width: 24px; height: 24px; pointer-events: none; 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)); }