🐛(frontend) fix premature line wrapping in composer (#740)

Safari 26 changed `text-wrap: pretty` to re-optimize line breaks over
the whole paragraph (webkit.org/blog/16547). The global CSS reset
applies it to every paragraph, so BlockNote editor paragraphs get
re-balanced on every keystroke, wrapping lines well before the editor
width. Restore `text-wrap: wrap` inside .bn-editor, which covers the
message, signature and template composers. Received messages render in
an iframe and are not affected by the reset.

Fixes #735

Signed-off-by: Nicolas Aunai <nicolas.aunai@lpp.polytechnique.fr>
Co-authored-by: Jean-Baptiste Penrath <jbpenrath@gmail.com>
This commit is contained in:
Nicolas Aunai
2026-07-06 16:10:05 +02:00
committed by GitHub
co-authored by Jean-Baptiste Penrath
parent 27b56ee058
commit db43a05f11
@@ -126,6 +126,11 @@
color: var(--c--globals--colors--gray-550);
border-color: var(--c--globals--colors--gray-550);
}
// Undo text-wrap: pretty; and text-wrap: balance; from reset.scss to avoid breaking long words in the editor
p {
text-wrap: wrap;
}
}
.tiptap > .bn-block-group {