🐛(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.
This commit is contained in:
Anthony LC
2026-02-24 15:44:35 +01:00
parent e323af2cdb
commit c37dc8dd34
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ and this project adheres to
- 🐛(helm) use celery resources instead of backend resources - 🐛(helm) use celery resources instead of backend resources
- 🐛(helm) reverse liveness and readiness for backend deployment - 🐛(helm) reverse liveness and readiness for backend deployment
- 🐛(y-provider) use CONVERSION_FILE_MAX_SIZE settings #1913 - 🐛(y-provider) use CONVERSION_FILE_MAX_SIZE settings #1913
- 🐛(frontend) fix callout block spacing for old browsers #1914
## [v4.5.0] - 2026-01-28 ## [v4.5.0] - 2026-01-28

View File

@@ -21,6 +21,9 @@ const CalloutBlockStyle = createGlobalStyle`
padding: var(--c--globals--spacings--3xs) var(--c--globals--spacings--3xs); padding: var(--c--globals--spacings--3xs) var(--c--globals--spacings--3xs);
border-radius: var(--c--globals--spacings--3xs); border-radius: var(--c--globals--spacings--3xs);
} }
.bn-block-content[data-content-type="callout"] .inline-content {
white-space: pre-wrap;
}
`; `;
type CreateCalloutBlockConfig = BlockConfig< type CreateCalloutBlockConfig = BlockConfig<