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