Skip to content

The open alternative to Salesforce, designed for AI.

fix(front): wrap long note/markdown text on mobile browsers (#21909)

Aleksa Jankovic0b31d2a6a0ee
diff --git a/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx b/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx
index 8f0edac2e11..80fd485cec9 100644
--- a/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx
+++ b/packages/twenty-front/src/modules/blocknote-editor/components/BlockEditor.tsx
@@ -30,6 +30,8 @@ interface BlockEditorProps {
// oxlint-disable-next-line twenty/no-hardcoded-colors
const StyledEditor = styled.div`
+ max-width: 100%;
+ min-width: 0;
width: 100%;
& .editor {
@@ -76,6 +78,15 @@ const StyledEditor = styled.div`
padding-inline: 0px;
}
+ & .bn-block-content {
+ min-width: 0;
+ }
+
+ & .bn-block-content,
+ & .bn-inline-content {
+ overflow-wrap: anywhere;
+ }
+
& .bn-inline-content {
width: 100%;
}