Repository navigation
Label the header submit link "submit game", keep the header on one row, load the site fonts - #226
Merged
Merged
Conversation
"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
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
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
marked this pull request as ready for review
December 1, 2026 02:43
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.
Requested by Grave · project thread
The header's
submitlink now readssubmit 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.submitchanges in the compiled-in English bundle and all five resx files. Each translation reuses the phrasenav.submitGame(the narrow-width menu entry) already has:The form button on
/submititself (submit.button) is unchanged.One-row header
Before this PR, the header wrapped into a second row on
mainat 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:menu ▾title(new)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-wrapstays 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 gamesetc.). 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.cssnamed Hanken Grotesk (--sans) and JetBrains Mono (--kick), but nothing loaded either one, so every reader saw their system font.SiteFontsnow links Fontsource's variable builds from jsDelivr, pinned to 5.3.0 and checked with SRI. That's the same setupScreenFontsuses for the connect-screen faces. Each script slice has aunicode-range, so an English page only fetches the Latin slice. The links come afterapp.cssso it stays the head's first stylesheet, whichStylesheetAddressTestsrelies 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.SiteHeaderTestsnow expects/aboutinmenu-tail, like/submit.https://claude.ai/code/session_01Rqqt7VK8AK8oRXbpqmZv8k
Generated by Claude Code