Skip to content

fix(web): center check status icons on their labels - #776

Merged
nixuuu merged 1 commit into
devfrom
fix/check-icon-alignment
Nov 15, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/check-icon-alignment

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026

Copy link
Copy Markdown
Member

Check status icons (spinner, check, cross) rode a couple of pixels above their labels in the PR checks list. Since the running-checks spinner landed, the tooltip wrapper around the icon held CheckStateIcon, an inline-grid, inside a plain inline <span>. That put the icon on the text baseline inside a line box, so its vertical position depended on font metrics and the engine's baseline handling instead of the row's items-center. The wrappers are now flex shrink-0, so there's no line box and the row centres the icon on the label. Applied in every place that wraps the icon this way: check rows, job rows inside an expanded check, the activity header, and both icons in the linked PR row.

Fixes: #615

Chromium centres the icon with either markup, so this was checked by measurement there (icon centre = row centre), not as a before/after. The reported offset is from macOS (WebKit), which couldn't be run here.

No UI text changes, so no copy audit.

Checks: format:check, lint, typecheck.

🤖 Generated with Claude Code

The tooltip wrapper around CheckStateIcon was an inline span, so the
inline-grid icon sat on the text baseline and rode above the check,
job and activity labels. The wrappers are now flex boxes, which take
the icon out of the line box and let the row centre it.

Fixes: #615

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu
nixuuu merged commit e17252f into dev Nov 15, 2026
19 of 21 checks passed
@nixuuu
nixuuu deleted the fix/check-icon-alignment branch November 15, 2026 01:40
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.

1 participant