René's URL Explorer Experiment


Title: improvement(menus): tighten dropdown spacing and cap the @ mention list by waleedlatif1 · Pull Request #6972 · simstudioai/sim · GitHub

Open Graph Title: improvement(menus): tighten dropdown spacing and cap the @ mention list by waleedlatif1 · Pull Request #6972 · simstudioai/sim

X Title: improvement(menus): tighten dropdown spacing and cap the @ mention list by waleedlatif1 · Pull Request #6972 · simstudioai/sim

Description: Summary Dropdown spacing — the menu was spaced wider than the surfaces it opens over: Row icon↔label gap was a re-derived gap-2 (8px); now composes chipContentGap (6px), the token the chips and resource rows already use. The menu's icons are 14px vs the chip's 16px, so the extra 2px read wider still. Surface padding p-1.5 → p-1. An 8px row radius + 4px padding is exactly the 12px surface radius, so a first/last row's rounding now tracks its corner instead of cutting across it. Two consumers had already overridden this to p-1 by hand — both overrides removed. Separator gutter 13px → 9px. Rows in the same group sit flush at 0px, so 13px made groups read as floating apart. DropdownMenuLabel padded to an uncontrolled, font-dependent height (nothing sets a line-height), sat two type steps below its rows, and used a colour heavier than the rows it introduces. Now composes the shared row height at text-caption / --text-muted, matching how the command palette and sidebar set their own section headings. Removed dead gap-0.5 from DropdownMenuGroup (zero consumers) and the now-inert gap-0 override it existed for. @ mention list — it rendered the entire integration catalogue: The per-family preview cap defaulted to uncapped, and integration is 300+ near-identical rows sorted first, so nothing else was reachable without scrolling past all of them. Capping is now the default (MENTION_PREVIEW_DEFAULT_LIMIT); a family opts out by raising its own limit. Typing a query still searches every family in full. Families are now labelled, so the list says what's mentionable instead of running as one flat alphabetical column. Capped to 280px rather than the 420px action-menu default — this one floats over the chat input. The integrations shown are curated popular ones rather than whatever sorts first alphabetically. Ranked by normalised display name, not block type, so a version bump can't silently unrank one. Shared chrome — dropdownMenuRowClass is now exported. Both menus that render plain