Repository navigation
Conversation
…en on a phone, not one letter alone #943's break-words broke "publications" wherever it ran out, leaving "s" alone on a line at 320 and 150% and at 430 and 200%. With hyphens-auto it breaks where English allows ("publica-tions").
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Closing: measured on Sources QA and OpenDevEd Test's home pages, hyphens-auto also splits words that fit their line at normal text on phones, in Chromium ("tutoring", "researchers", "communities" at 320 and 430) and WebKit ("analysts", "before", "record" at 320 and 390). That changes the normal-text layout, which the fix must not. The lone letter goes to the product owner as a decision instead. |
Found by the daily QA of 27 November, checking #943.
Problem
#943 lets a word wider than its line break on a phone, so the home page's Explore the data sentence stays inside its card at large text. It breaks the word wherever the line runs out: on Sources QA, "29 publications" ended as "publication" and a line holding only "s" at 320px and 150%, and at 430px and 200%, in Chromium, Firefox and WebKit.
Change
Readingaddsmax-sm:hyphens-autobesidemax-sm:break-words: a word too wide for its line breaks with a hyphen where its language allows, and still breaks anywhere when it can't. The page carrieslang, so the browser knows the language. The admin's dialog titles already break this way (.modal-header-titleinglobals.css). Phones only; a word that fits never breaks.Checks
The same rule applied to Sources QA's live home page with a constructed stylesheet, the By year sentence at 150%:
390 at 100% and 1440 at 200% are unchanged (no word breaks).
npm run quality:fallow -- --base origin/main(pass),npm run check:ui-rules,eslinton the file.