mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 16:56:16 +08:00
fix: eliminate layout shift when switching providers
- Use opacity transition instead of conditional rendering for "current" badge to prevent height changes - Add min-h-[20px] to title row to maintain consistent height - Use 2px border for active provider, 1px for inactive to improve visual distinction - Remove global border-color rule that was overriding Tailwind utilities - Use HSL arbitrary values for border colors to work with Tailwind 4 + shadcn/ui
This commit is contained in:
@@ -73,7 +73,6 @@
|
||||
/* 全局基础样式 */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
border-color: hsl(var(--border));
|
||||
}
|
||||
|
||||
html {
|
||||
|
||||
Reference in New Issue
Block a user