fix resize slider visibility
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-03-26 21:16:26 +08:00
parent b088d65a66
commit 6c1583a2fa

View File

@ -1795,7 +1795,7 @@ export function ImageAnnotator({
})}
</div>
<div className="h-7 w-px shrink-0 bg-border/60" />
<div className="flex min-w-[220px] items-center gap-3 rounded-[22px] bg-muted/35 px-3 py-2">
<div className="flex min-w-[280px] items-center gap-3 rounded-[22px] bg-muted/35 px-3 py-2">
<span className="shrink-0 text-xs font-medium text-muted-foreground">
缩放
</span>
@ -1805,7 +1805,10 @@ export function ImageAnnotator({
min={0.1}
max={5}
step={0.01}
className="flex-1"
className="w-[160px] shrink-0"
trackClassName="h-1.5 bg-white/12 dark:bg-white/12"
rangeClassName="bg-emerald-400 dark:bg-emerald-400"
thumbClassName="h-4 w-4 border border-emerald-300 bg-white shadow-[0_0_0_4px_rgba(16,185,129,0.18)] dark:bg-emerald-50"
/>
<span className="min-w-[48px] shrink-0 text-right text-xs font-medium text-foreground">
{(resizeImageScale * 100).toFixed(0)}%