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)); }