fix(editor): use overflow-wrap instead of word-break for text wrapping

word-break: break-all breaks text at any character, causing mid-word
breaks even when the word could fit on the next line. overflow-wrap:
break-word wraps at word boundaries first and only breaks mid-word
when a single word exceeds the container width.
This commit is contained in:
kolaente
2026-02-26 16:30:55 +01:00
parent 3d5ad73d4f
commit 80759831ec

View File

@@ -933,7 +933,7 @@ watch(
// Basic editor styles
.ProseMirror {
padding: .5rem .5rem .5rem 0;
word-break: break-all;
overflow-wrap: break-word;
&:focus-within, &:focus {
box-shadow: none;