Skip to content

Routing: align the letter tile of an upstream without a logo - #366

Merged
fylorn merged 1 commit into
devfrom
fix/letter-tile-align
Oct 23, 2026
Merged

fylorn merged 1 commit into
devfrom
fix/letter-tile-align

Conversation

@fylorn

@fylorn fylorn commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #365.

An upstream without a known logo gets a letter tile. The tile was a span holding the letter, so its baseline was the letter's baseline. In the route table's rule list, logos sit inline with vertical-align: -2px (tuned for SVG logos, whose baseline is their bottom edge), so the tile sat about 5 px below the text; the inline-block there also replaced its inline-flex, pushing the letter off centre.

The tile is now an SVG (rounded 1 px outline at 35 % and the centred letter), so it lines up wherever the other logos do.

Checked in the preview harness with an upstream renamed to have no logo: the tile's centre moved from 5.5 px below the text's centre to 0.5 px, the same as the other logos in the list.

🤖 Generated with Claude Code

The letter tile drawn for an upstream without a known logo was a span
holding text, so its baseline was the letter's baseline. In the route
table's rule list, where logos sit inline with vertical-align: -2px, the
tile dropped about 5 px below the text, and the inline-block there also
dropped its flex centring, pushing the letter to the corner. Draw the tile
as an SVG like the other logos, so it lines up wherever they do.

Fixes #365

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit a8594ac into dev Oct 23, 2026
6 checks passed
@fylorn
fylorn deleted the fix/letter-tile-align branch October 23, 2026 03:28
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant