Skip to content

Label the header submit link "submit game", keep the header on one row, load the site fonts - #226

Merged
HarryCordewener merged 3 commits into
mainfrom
claude/project-thread-280rpf
Dec 1, 2026
Merged

HarryCordewener merged 3 commits into
mainfrom
claude/project-thread-280rpf

Conversation

@HarryCordewener

@HarryCordewener HarryCordewener commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Requested by Grave · project thread

The header's submit link now reads submit game, so it says what it submits. The header also stays on one row at every width, in every locale. It used to wrap into a second row. The site's own fonts, which it named but never loaded, now load.

Label

nav.submit changes in the compiled-in English bundle and all five resx files. Each translation reuses the phrase nav.submitGame (the narrow-width menu entry) already has:

locale before after
en submit submit game
de eintragen Spiel eintragen
nl aanmelden spel aanmelden
ja 登録 ゲームを登録
zh-Hans 提交 提交游戏

The form button on /submit itself (submit.button) is unchanged.

One-row header

Before this PR, the header wrapped into a second row on main at 901–1068px (en), 901–1322 (de), 901–1335 (nl) and 901–1262 (ja), and on phones below roughly 410px. The longer label added more of those widths. Every step in the ladder is now set by the widest locale that has been measured:

step change width
1 group labels drop ≤ 86.25em (was 73.75em)
3 nav collapses into menu ▾ ≤ 77.5em (was 56.25em)
4 submit joins the menu ≤ 43.75em (was 40em)
4b about joins the menu (new) ≤ 33em
4c theme control drawn as glyphs; each word stays as the accessible name and title (new) ≤ 25em
5b bar padding and gaps tighten (new) ≤ 22.5em

The trade-off: from 900 to 1240px, English readers now get the menu where the inline links would still fit. Grave chose one collapse width for every language over per-language widths.

flex-wrap stays in as a safety net. If a font or translation nobody has measured doesn't fit, a second row is better than a clipped link.

Measured

Playwright against the fixture site, 320–1700px in 1–2px steps, for en, de, nl, ja and zh-Hans, signed out and with the signed-in label (your games etc.). The header stays on one row in every case. With an extra 12px of stress added to simulate a wider system font, the only wrap is signed-in Japanese at 320–322px.

I ran it twice: once with the Linux system font (Inter) and once with the webfonts below loaded. Neither run produced a second row. In Hanken Grotesk the widest bar is Japanese signed in, which needs 1198px without labels, and Dutch signed in, which needs 1296px with them. Both clear the 1240 and 1380 breakpoints. The breakpoints still hold for a reader whose browser never loads the webfont.

Fonts

app.css named Hanken Grotesk (--sans) and JetBrains Mono (--kick), but nothing loaded either one, so every reader saw their system font. SiteFonts now links Fontsource's variable builds from jsDelivr, pinned to 5.3.0 and checked with SRI. That's the same setup ScreenFonts uses for the connect-screen faces. Each script slice has a unicode-range, so an English page only fetches the Latin slice. The links come after app.css so it stays the head's first stylesheet, which StylesheetAddressTests relies on. I verified the hashes against the npm tarballs, and in Chromium both faces load with integrity checking on.

Tests

MUI.Web.Tests: 1297 passed, 5 skipped (no Postgres locally), 0 failed. SiteHeaderTests now expects /about in menu-tail, like /submit.

https://claude.ai/code/session_01Rqqt7VK8AK8oRXbpqmZv8k


Generated by Claude Code

"submit" alone does not say what is submitted. The header link now
reads "submit game", and each locale carries the matching phrase the
narrow-width menu entry already uses (Spiel eintragen, spel aanmelden,
ゲームを登録, 提交游戏).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7VK8AK8oRXbpqmZv8k
@HarryCordewener HarryCordewener self-assigned this Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A second row in the header was the ladder's escape valve; it is no
longer acceptable. Every step is now set where the widest measured
locale still fits on one row:

- the nav collapses into its menu at 77.5em (was 56.25em), and the
  group labels stay off until 86.25em (was 73.75em);
- submit joins the menu at 43.75em (was 40em);
- about joins the menu at 33em;
- the theme control draws glyphs at 25em, keeping each word as the
  button's accessible name and tooltip;
- the bar's own spacing tightens at 22.5em.

Swept 320-1700px in en, de, nl, ja and zh-Hans, signed in and out:
one row throughout. flex-wrap stays as a safety net for an unmeasured
font or translation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7VK8AK8oRXbpqmZv8k
@HarryCordewener HarryCordewener changed the title Label the header submit link "submit game" Label the header submit link "submit game" and keep the header on one row Dec 1, 2026
app.css named both faces and nothing loaded either, so every reader got
their system UI font. They now come from Fontsource's variable builds on
jsDelivr, pinned to 5.3.0 and checked with subresource integrity, the
same way ScreenFonts loads the connect-screen faces.

Re-measured the header in the loaded faces: one row from 320 to 1700px
in all five locales, signed in and out. The widths stay where they were,
because they also have to hold for a reader whose browser never gets
the webfont.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7VK8AK8oRXbpqmZv8k
@HarryCordewener HarryCordewener changed the title Label the header submit link "submit game" and keep the header on one row Label the header submit link "submit game", keep the header on one row, load the site fonts Dec 1, 2026
@HarryCordewener
HarryCordewener marked this pull request as ready for review December 1, 2026 02:43
@HarryCordewener
HarryCordewener merged commit 04c35c1 into main Dec 1, 2026
2 of 3 checks passed
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.

2 participants