Skip to content

fix(github): put the mark and the name in the heading - #210

Merged
veksen merged 2 commits into
mainfrom
fix-brand-heading-alignment
Jul 31, 2026
Merged

veksen merged 2 commits into
mainfrom
fix-brand-heading-alignment

Conversation

@veksen

@veksen veksen commented Jul 31, 2026

Copy link
Copy Markdown
Member

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:

[mark] Query Doctor      <- 14px, and the mark sits below the text baseline

### 6 successful checks  <- 20px

The product name was smaller than the line beneath it, and the mark did not sit on the text.

After, one heading line:

### [mark] Query Doctor — 6 successful checks

How

The mark is 18x20 on a square viewBox. SVG's default preserveAspectRatio letterboxes rather than stretches, so it renders 18px square with 2px of space below, and align="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 /markdown and compared them. At 22 the mark rides low, at 18 it reads small, 20 sits on the cap line.

Tests

github.test.ts asserts the name and the counts render on one line, in both the failing and clean cases. Full suite: 404 passing, 41 files, typecheck clean.

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>

@github-actions github-actions 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.

Query Doctor — 6 successful checks

 Cost regression — No query went up more than 5%
 Untested data access — No changed data-access file without a test
 New query — No new queries
 New query with index recommendation — No new query ships an index recommendation
 Schema drift — No schema changes
 High-value nudge — No index or rewrite past the threshold


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>
@veksen
veksen merged commit deb96c3 into main Jul 31, 2026
6 checks passed
@veksen
veksen deleted the fix-brand-heading-alignment branch August 12, 2026 20:06
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