Skip to content

Commit b3a4bca

Browse files
Wrap long words and URLs so pages reflow when zoomed in (#146)
At 400% zoom, a long URL in a post pushed the page wider than the viewport, so readers had to scroll sideways to read it. Setting overflow-wrap: break-word on body lets it break onto the next line, like Twenty Twenty and Twenty Twenty-One do. Part of #44. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent cbf8bb4 commit b3a4bca

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎style.css‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ body {
2525
text-rendering: geometricprecision;
2626
-webkit-font-smoothing: antialiased;
2727
-moz-osx-font-smoothing: grayscale;
28+
29+
/*
30+
* Let long unbroken strings, such as URLs, break onto the next line
31+
* instead of pushing the page wider than the viewport when zoomed in.
32+
* https://www.w3.org/WAI/WCAG22/Understanding/reflow.html
33+
*/
34+
overflow-wrap: break-word;
2835
}
2936

3037
/*

0 commit comments

Comments
 (0)