fix(x): optically center the 'Same as above' placeholder in the chat stepper

This commit is contained in:
Gagan 2026-07-21 15:37:21 +05:30
parent af19cad43b
commit 34501ee2cf

View file

@ -2701,7 +2701,10 @@ function LimitStepper({
onBlur={() => onCommit(value)}
className={cn(
"h-full border-x border-input bg-transparent text-center text-sm tabular-nums outline-none",
"placeholder:text-[11px] placeholder:text-muted-foreground/70",
// The 11px placeholder sits on the 14px text baseline, so it reads
// slightly low; nudge it up for optical centering. Only applies
// while the placeholder is visible, so typed text is unaffected.
"placeholder:text-[11px] placeholder:text-muted-foreground/70 placeholder-shown:pb-0.5",
placeholder ? "w-24" : "w-16",
)}
/>