mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
fix(ui): prevent card jitter when health badge appears
Increase min-height of the name row from 20px to 28px (min-h-7) to accommodate the health badge height, preventing layout shift when the badge dynamically appears.
This commit is contained in:
@@ -227,7 +227,7 @@ export function ProviderCard({
|
||||
</div>
|
||||
|
||||
<div className="space-y-1">
|
||||
<div className="flex flex-wrap items-center gap-2 min-h-[20px]">
|
||||
<div className="flex flex-wrap items-center gap-2 min-h-7">
|
||||
<h3 className="text-base font-semibold leading-none">
|
||||
{provider.name}
|
||||
</h3>
|
||||
|
||||
Reference in New Issue
Block a user