From 0fba762012705860130217e567ee86467bdb6ba7 Mon Sep 17 00:00:00 2001 From: Viktor Soroka Date: Thu, 31 Oct 2024 14:41:57 +0200 Subject: [PATCH] Fix blue bg in blog (#561) --- src/containers/BlogPostPage/BlogPostPage.scss | 4 ++++ src/containers/BlogPostPage/constants.tsx | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/containers/BlogPostPage/BlogPostPage.scss b/src/containers/BlogPostPage/BlogPostPage.scss index 93a27fc06..c3dcabc68 100644 --- a/src/containers/BlogPostPage/BlogPostPage.scss +++ b/src/containers/BlogPostPage/BlogPostPage.scss @@ -24,6 +24,10 @@ padding: calc(72px + var(--header-height)) 120px 8px 120px; } + p { + white-space: pre-wrap; + } + &__head { @include m.breakpoint(v.$desktop-sm) { width: 1200px; diff --git a/src/containers/BlogPostPage/constants.tsx b/src/containers/BlogPostPage/constants.tsx index 321bbcaf9..b937647bb 100644 --- a/src/containers/BlogPostPage/constants.tsx +++ b/src/containers/BlogPostPage/constants.tsx @@ -72,15 +72,4 @@ export const OPTIONS = { {children} ), }, - renderText: text => - text - .split('\n') - .reduce( - (children, textSegment, index) => [ - ...children, - index > 0 &&
, - textSegment, - ], - [], - ), };