Skip to content

fix(web): centre and space the What's new badge in the sidebar - #160

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-12052-vertically-center-and-space-the-new-badge-next-to-whats-new
Nov 4, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-12052-vertically-center-and-space-the-new-badge-next-to-whats-new

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Linear: CL-12052

What changed

SidebarItem puts its children inside a single inline label, so the "What's new" text and the NEW badge sat flush against each other and aligned on the text baseline. The footer item now wraps the two in one .app-sidebar-whats-new span that lays them out as a centred row with an 8px gap, the same gap the sidebar uses elsewhere. @corbits/react-ui is unchanged.

Verification

Lint, format check, typecheck, unit tests, pins:verify and vendor:verify pass. On a local stack I measured the item in headless Chromium: before the fix the badge started right where the text ended (0px gap); after it, the gap is 8px and the label and badge centres are within 0.01px of each other.

Before:

before

After:

after

@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

CL-12052

@corbits-triage

corbits-triage Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

@corbits-triage corbits-triage Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No defects reported.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 8189824 Nov 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant