Skip to content

Commit

Permalink
fix: react render component style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Feb 11, 2024
1 parent 2c98d46 commit 28bc85f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/modules/shared/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export const CodeBlockRender = (props: {
return <ExcalidrawLazy data={props.content} />
}
case 'component': {
return <ReactComponentRender dls={props.content} />
return (
<div className="not-prose my-4">
<ReactComponentRender dls={props.content} />
</div>
)
}
default: {
const HighLighter = dynamic(() =>
Expand Down

0 comments on commit 28bc85f

Please sign in to comment.