Skip to content

feat(app-rail): tighten rail icons to 16px on 28px buttons - #47915

Merged
orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/app-rail-crisp-16
Nov 23, 2026
Merged

orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/app-rail-crisp-16

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Smaller, lighter icons on the left app rail so it looks cleaner and gives the active pill breathing room next to the divider.

Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48 $\color{#cf222e}{\Huge{\mathbf{−}}}$​24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24

What Changed

  • Rail icons shrink from 18px (default 2.0 stroke) to 16px with a 1.75 stroke via shared APP_RAIL_ICON_SIZE / APP_RAIL_ICON_STROKE_WIDTH constants, including the overflow More Ellipsis icon.
  • Rail buttons shrink from 32×32px (size-8) to 28×28px (size-7, rounded-md) inside the existing 40px rail (w-10), widening side margins from 4px to 6px.
  • Active state uses the rounded pill fill alone; removed the 2px left-edge indicator bar and the now-unused relative class.
  • APP_RAIL_SLOT_PX goes from 36 to 32 (28px button + 4px gap) so overflow capacity matches the new button height.

Why

The previous 18px icons at 2.0 stroke filled 45% of the 40px rail and left only 4px between the active pill and the sidebar divider. Checked against how comparable products handle this.

Visual Proof

Verified in isolated component fixture renders (no app instance) in light and dark: 28px pill-only active state with 16px icons, and a short window folding destinations into an active More.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

pnpm check:changed passed all 31 checks (format, lint, typecheck, ratchets). Verified the overflow boundary math (32px slot) and rendered icon/button geometry in isolated component fixtures across light/dark and overflow states. No unit tests added for static CSS/size constants, per the repo test guidelines.

Performance

None, because this only adjusts static icon size, stroke width, Tailwind sizing classes, and the slot-height constant (removing one active-state span element); zero new renders, effects, or allocations.

Risk

Purely visual styling and an overflow slot constant in the opt-in app rail; a plain revert restores the previous sizing.

Level: Low

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Rail icons drop to 16px with a 1.75 stroke, shared via APP_RAIL_ICON_SIZE and
APP_RAIL_ICON_STROKE_WIDTH so More's Ellipsis matches every rail button.
Buttons shrink to 28px (size-7) and the active state is the pill alone; the
left edge indicator bar is gone. APP_RAIL_SLOT_PX follows to 32 (28 + 4 gap)
so overflow capacity matches the new button height. Rail width stays 40px.
@orca-remote-automation
orca-remote-automation Bot merged commit 2f31a35 into main Nov 23, 2026
54 checks passed
@orca-remote-automation
orca-remote-automation Bot deleted the orca-remote-automation/app-rail-crisp-16 branch November 23, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants