Lanceringsuge50 % rabat på et år AuteurSe planer
MCP
SpacesFå Pro
Blueprint · Nr. 01

The arrow belongs to its word

The tiny chevron on a dropdown, why AI-built interfaces keep pinning it to the far edge, and the one CSS property that fixes it.

· 4 min læsning · Noterne er skrevet på engelsk.

Look at the popup buttons in any interface an AI built and you'll find the same thing: a short label on the left, and the little arrow pinned to the far right of a box far wider than its words. It reads as two separate things, a word and an arrow, with a gap you have to cross.

WeeklyArrow pinned to the far edge
WeeklyArrow beside its word
Fig. 1Same label, same arrow. On the left the box is as wide as the widest option; on the right it hugs its word.

Why it happens

A native select is as wide as its longest option, whatever is showing. Style it, put the arrow at the right edge, and every short choice leaves a gulf. Agents copy that pattern because it's everywhere, and because the arrow at the edge is right for one case: a full-width form field, where the width means something.

The fix

Size the control to its content and put the arrow 6 to 8 pixels after the label. For native selects there is now one property for it:

select {
  field-sizing: content;   /* as wide as the chosen option */
  padding: 0 30px 0 12px;  /* room for the arrow, right after the text */
}
Gap, label to arrow
6 to 8 px
Arrow
10 to 12 px, quieter than the label
Open
turns 180°
Full-width field
arrow 12 to 16 px from the right edge
Things that belong together sit together. A dropdown is one thing.

It's a small rule, which is exactly why it gets missed, and why it's written into the Spacing and buttons skill: your agent reads it before it builds a control, every time.

Bygget i denne note

Hver figur ovenfor er en Velvo-komponent. Tilføj dem til din app, og giv din agent de skills, der ligger bag.

$npx velvo add segmented chips popover
Flere noterIcons that change their mind