mirror of
https://github.com/suitenumerique/messages.git
synced 2026-08-17 21:25:41 +02:00
🐛(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:
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 {
|
||||
|
||||
Reference in New Issue
Block a user