Skip to content

Commit e2a71b9

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 431c331 commit e2a71b9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ and this project adheres to
4040
- 🐛(frontend) scroll back to top when navigate to a document #1406
4141
- 🐛(frontend) exclude h4-h6 headings from table of contents #1441
4242
- 🔒(frontend) prevent readers from changing callout emoji #1449
43+
- 🐛(frontend) fix overlapping placeholders in multi-column layout #1455
44+
45+
4346

4447
## [3.7.0] - 2025-09-12
4548

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)