Skip to content

Commit c37dc8d

Browse files
committed
🐛(frontend) fix callout block spacing for old browsers
On the old Firefox versions, the spacing of the callout block was not applied correctly. We changed the "white-space" property to "pre-wrap" to ensure that the spacing is applied correctly on all browsers.
1 parent e323af2 commit c37dc8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ and this project adheres to
3131
- 🐛(helm) use celery resources instead of backend resources
3232
- 🐛(helm) reverse liveness and readiness for backend deployment
3333
- 🐛(y-provider) use CONVERSION_FILE_MAX_SIZE settings #1913
34+
- 🐛(frontend) fix callout block spacing for old browsers #1914
3435

3536
## [v4.5.0] - 2026-01-28
3637

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const CalloutBlockStyle = createGlobalStyle`
2121
padding: var(--c--globals--spacings--3xs) var(--c--globals--spacings--3xs);
2222
border-radius: var(--c--globals--spacings--3xs);
2323
}
24+
.bn-block-content[data-content-type="callout"] .inline-content {
25+
white-space: pre-wrap;
26+
}
2427
`;
2528

2629
type CreateCalloutBlockConfig = BlockConfig<

0 commit comments

Comments
 (0)