redesign: mobile readability — smaller reading text, contained preview grid #19
Loading…
Reference in a new issue
No description provided.
Delete branch "redesign/10-mobile-readability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mobile readability fixes
Two phone-width problems from reviewing the current foundation on a real device:
1. Reading text was oversized on mobile
--text-readwas fixed at 1.25rem (20px) on all viewports — at 320–390 px that measures only 4–6 words per line (article bodies, About section, lead story).Now steps down to 1.0625rem (17px) below
md, back to 1.25rem at ≥48rem. A breakpoint step (not vw scaling) keeps the rem semantics — browser font-size preference still controls the size (the "no viewport scaling for reading text" decision from the feature set spec is preserved, phones just get a smaller step).2. Article preview list: wrapped text + rules under the text only
The thumbnail floated on mobile, so the
<article>box didn't contain it:<hr>between items rendered only under the text, thumbnail hanging outside the borderFix in
blog_post_preview.html:w-24(96px) on phones, 180px fromsmup (w-24 h-auto sm:w-[180px]passed to the picture generator; default-letter thumbnail scales to match)post_list.htmldropsw-fitfrom the list so rules always span the full railVerification
cargo test --all-features— 36 passed🪦 Live preview
removed (PR closed)