修复 CSS Module spin 动画::global(spin) 改为本地 @keyframes spin

PostCSS 将 :global(spin) 解析为伪元素 :: 导致 Vercel 构建失败。
改用在每个 CSS Module 中定义本地 @keyframes spin。
This commit is contained in:
2569718930@qq.com
2026-05-14 18:06:53 +08:00
parent c8103179e1
commit ac90ef9206
9 changed files with 27 additions and 9 deletions
@@ -648,7 +648,7 @@
}
.root :global(.scan-ai-city-icon-button .spin) {
animation: :global(spin) 1s linear infinite;
animation: spin 1s linear infinite;
}
.root :global(.scan-ai-city-collapse) {
@@ -1289,3 +1289,5 @@
font-weight: 600;
color: var(--color-text-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }