Repository navigation
fix(github): put the mark and the name in the heading - #210
Merged
Merged
Conversation
The name sat above the heading as bold body text, so the product was smaller than the count line under it, and the mark sat below the text baseline. One heading line carries both. The mark renders at 18px square inside an 18x20 box, which lifts it onto the cap height the same way the gate glyphs are lifted. Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.

Query Doctor — 6 successful checks
More details via MCP → get_ci_run({ runId: "019fb9ad-3b34-7d4d-992a-28d5833f9faa" }) · view run · docs
3 queries read against main on assumed statistics of 10,000,000 rows per table. Sync production stats for costs measured against your real data.
The taller img box did nothing on its own: preserveAspectRatio defaults to xMidYMid, so the extra 2px split evenly above and below the art and cancelled. Pad the viewBox instead, which anchors the art to the top of the box. Same lift the gate glyphs get from their 256x292 viewBox. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Fix two problems with the branding added in #207, both visible on its first live run.
What
Before, the name was bold body text on its own line above the heading:
The product name was smaller than the line beneath it, and the mark did not sit on the text.
After, one heading line:
How
The mark is
18x20on a squareviewBox. SVG's defaultpreserveAspectRatioletterboxes rather than stretches, so it renders 18px square with 2px of space below, andalign="absmiddle"then centres the taller box, lifting the mark onto the cap height. Same trick as the gate glyphs.I rendered 18, 20 and 22px through
POST /markdownand compared them. At 22 the mark rides low, at 18 it reads small, 20 sits on the cap line.Tests
github.test.tsasserts the name and the counts render on one line, in both the failing and clean cases. Full suite: 404 passing, 41 files, typecheck clean.