Repository navigation
Glossary on phones: only the search row stays pinned; 44 px controls; names wrap at 200% - #1172
Merged
Merged
Conversation
… long names wrap at 200% Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
👍 All image files/references (if any) are in webp format, in line with our policy. |
Contributor
✅ Spell Check PassedNo spelling issues found when checking 3 changed file(s)! 🎉 |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oes not widen the page Co-Authored-By: Claude Opus 5.5 <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.
Three changes for visitors using the glossary on a phone, in every language.
Only the search row stays pinned while the terms scroll. Before, the whole toolbar stayed on screen: search, view buttons and three rows of letters, about 229 px or over a quarter of a 844 px screen. DESIGN.md §9 allows only the search row. The letters now scroll away with the page. The toolbar box gives way (
display: contents) so that the search row can stick for the whole list.site.jsmeasures whichever part is pinned, so a letter's heading still lands 12 px below it.44 px targets for the language links on term pages (were 38 px), Clear on the hub and in the side filter (29 to 39 px), and the Cards/List buttons (39 px).
Long names in the credits wrap at 200% text. Each name was set not to wrap, so at 390 px with text at 200%, "Charlotte R. Pennington" ran 22 px past the screen (§12). A name now moves to the next line whole, and wraps inside only when it is wider than the column.
The hub's language menu may shrink (
min-width:0). At 390 px with text at 200%, the menu beside "Language" kept its full width and widened the page: by 62 px on the English hub, 40 px on the German and 7 px on the Arabic. No glossary hub now scrolls sideways at 375 or 390 px with doubled text.Desktop is unchanged.
At 390 px, the Arabic hub after scrolling down (before, the letters stay pinned too)
Before:

After:

At 1440 px: unchanged, the whole toolbar pinned
At 390 px with text at 200%, the credits of an Arabic term
Before (the name runs off the left edge):

After:

At 390 px with text at 200%, the English hub's language menu (before, it runs past the right edge)
Before:

After:

At 390 px, the language links on a Chinese term
Before:

After:

From the GPT reviewer in the hillclimb's third and fourth glossary rounds. It follows #1160, whose toolbar measurement it extends.
Decisions to review
Checks
python3 scripts/check_seo_html.py <build>: passed.python3 -m unittest discover -s scripts/tests: 145 tests passed.🤖 Generated with Claude Code
Summary by cubic
Fixes the glossary on phones: only the search row stays pinned while terms scroll, touch targets grow to 44 px, and long contributor names wrap instead of running off screen.
Before, the full toolbar — search, view buttons, and three rows of letters — stayed pinned on phones, covering about a quarter of the screen. The letters now scroll away with the page, and the JS measures whichever part is pinned so letter headings still land 12 px below it. Language links, Clear buttons, Cards/List buttons, and the language select get 44 px targets. Contributor names wrap at 200% text size instead of overflowing the column, and the language menu may shrink so 200% text does not widen the page. Desktop is unchanged.
Notes for review
Written for commit 9daba3e. Summary will update on new commits.