Skip to content

Commit

Permalink
Fix blue bg in blog (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSoroka07 authored Oct 31, 2024
1 parent c1e05e6 commit 0fba762
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/containers/BlogPostPage/BlogPostPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 0 additions & 11 deletions src/containers/BlogPostPage/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,4 @@ export const OPTIONS = {
<td className="blog-post-page__table-cell">{children}</td>
),
},
renderText: text =>
text
.split('\n')
.reduce(
(children, textSegment, index) => [
...children,
index > 0 && <br key={index} />,
textSegment,
],
[],
),
};

0 comments on commit 0fba762

Please sign in to comment.