🐛 fix: 修复存储卡片悬浮动画过渡范围

* 保留 300ms/2px 悬浮效果,仅过渡视觉属性并支持减少动画偏好
* 增加回归测试防止布局属性进入 transition,82 项测试与构建通过
This commit is contained in:
orion committed 2026-10-29 17:10:15 +08:00
1 parent aacd017465
commit d903dc3f3f
2 files changed
+22 -1

No files matched your search

+10 -1
View File
@@ -1409,7 +1409,7 @@
<div
v-for="item in detailStorageItems"
:key="item.label"
class="theme-2026-card-hover grid gap-1 rounded-[22px] border px-3 py-2.5 shadow-md transition-all duration-200 hover:shadow-lg sm:grid-cols-[160px_minmax(0,1fr)] sm:items-center"
class="fcb-storage-card theme-2026-card-hover grid gap-1 rounded-[22px] border px-3 py-2.5 shadow-md transition-all duration-200 hover:shadow-lg sm:grid-cols-[160px_minmax(0,1fr)] sm:items-center"
:class="[isDarkMode ? 'border-gray-700 bg-gray-700/30' : 'border-gray-200 bg-white']"
>
<p class="text-xs leading-4" :class="[mutedTextClass]">{{ item.label }}</p>
@@ -2569,6 +2569,15 @@ onUnmounted(() => {
</script>
<style scoped>
.fcb-storage-card {
transition: transform 300ms ease, box-shadow 300ms ease,
background-color 300ms ease, border-color 300ms ease !important;
}
@media (prefers-reduced-motion: reduce) {
.fcb-storage-card { transition-duration: 0.01ms !important; }
}
.fcb-lifecycle-viewport {
overflow: visible;
}