Skip to content

Commit ce4e71b

Browse files
removed inline-block and added pre-wrap to pre tags in CodeHighlight.tsx
1 parent a0e24d4 commit ce4e71b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

frontend/main/src/components/notion-custom-blocks/CodeHighlight.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const CodeHighlight = ({
7171
>
7272
{({ className, style, tokens, getLineProps, getTokenProps }) => (
7373
<pre
74-
className={`${className} inline-block`}
74+
className={`${className} whitespace-pre-wrap`}
7575
style={{ ...style, padding: '2rem', position: 'relative' }}
7676
>
7777
<Button

frontend/main/src/layout/PostLayout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ export default function PostLayout({
307307
)}
308308
<BreakBarLeft>
309309
<div className="grid w-full gap-4">
310-
{/* <section className="flex flex-wrap items-center justify-between w-full gap-4 lg:flex-nowrap"> */}
311310
<section className="grid items-center justify-between gap-2 lg:flex">
312311
<h1 className="self-center font-sans text-2xl lg:flex-1 sm:text-4xl text-basics-50">
313312
{post.title}

0 commit comments

Comments
 (0)