From e7fe153a81595f3628c3444291e4205103c373bb Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 10 Jun 2024 12:39:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20break=20line=20o?= =?UTF-8?q?n=20firefox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On firefox with collaborative mode, the last upgrade of ProseMirror added a new line when a another user was typing. This commit fixes this issue. --- .../features/pads/pad-editor/components/BlockNoteEditor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/apps/impress/src/features/pads/pad-editor/components/BlockNoteEditor.tsx b/src/frontend/apps/impress/src/features/pads/pad-editor/components/BlockNoteEditor.tsx index 98df3edd..47d404de 100644 --- a/src/frontend/apps/impress/src/features/pads/pad-editor/components/BlockNoteEditor.tsx +++ b/src/frontend/apps/impress/src/features/pads/pad-editor/components/BlockNoteEditor.tsx @@ -69,6 +69,9 @@ export const BlockNoteContent = ({ pad, provider }: BlockNoteContentProps) => { &, & > .bn-container, & .ProseMirror { height:100% }; + & .collaboration-cursor__caret.ProseMirror-widget{ + word-wrap: initial; + } `} >