Skip to content

Commit 493482f

Browse files
committed
add overflow-wrap:break-word to enforce text wrapping
1 parent d07922e commit 493482f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/styles/text-styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737

3838
:root {
3939
font-family: var(--pfp-font-family);
40+
41+
// Prevent long text from overflowing if there are no acceptable break points
42+
// (this is necessary as Chrome/etc have different text wrap behavior)
43+
// https://github.com/playfulprogramming/playfulprogramming/issues/1213
44+
// https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap
45+
overflow-wrap: break-word;
4046
}
4147

4248
:where(.text-style-headline-1) {

0 commit comments

Comments
 (0)