Skip to content

Commit e8dbd16

Browse files
committed
✨(frontend) fix overlapping placeholders in multi-column layout
placeholders no longer overlap when adding 2–3 column, text wraps correctly Signed-off-by: Cyril <[email protected]>
1 parent e3b2fdb commit e8dbd16

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to
4343
- 🐛(frontend) fix attachment download filename #1447
4444
- 🐛(frontend) exclude h4-h6 headings from table of contents #1441
4545
- 🔒(frontend) prevent readers from changing callout emoji #1449
46+
- 🐛(frontend) fix overlapping placeholders in multi-column layout #1455
4647

4748
## [3.7.0] - 2025-09-12
4849

src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ export const cssEditor = (readonly: boolean) => css`
1616
font-weight: 400;
1717
}
1818
19+
.bn-block-content[data-is-empty-and-focused][data-content-type='paragraph']
20+
.bn-inline-content:has(> .ProseMirror-trailingBreak:only-child)::before {
21+
position: static !important; /* override absolute positioning from lib */
22+
display: inline;
23+
white-space: normal;
24+
word-break: break-word;
25+
overflow-wrap: anywhere;
26+
max-width: 100%;
27+
text-align: left;
28+
}
29+
1930
.bn-side-menu .mantine-UnstyledButton-root svg {
2031
color: #767676 !important;
2132
}

0 commit comments

Comments
 (0)