Skip to content

Commit 25d188c

Browse files
committed
style: adjust padding and margin in CodeBlock component for improved layout
1 parent e999d31 commit 25d188c

File tree

1 file changed

+2
-0
lines changed
  • src/components/MDXComponents

1 file changed

+2
-0
lines changed

src/components/MDXComponents/Pre.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export const CodeBlock: React.FC<MdxCodeChildrenProps> = ({
8181
marginRight: "3rem",
8282
overflow: "auto",
8383
whiteSpace: isWrapped ? "pre-wrap" : undefined,
84+
paddingBottom: "10px",
85+
marginBottom: "-10px",
8486
}}
8587
dangerouslySetInnerHTML={{ __html: hlResult.value }}
8688
/>

0 commit comments

Comments
 (0)