mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-24 21:41:08 +02:00
fix(x): optically center the 'Same as above' placeholder in the chat stepper
This commit is contained in:
parent
af19cad43b
commit
34501ee2cf
1 changed files with 4 additions and 1 deletions
|
|
@ -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",
|
||||
)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue