Skip to content

Commit a6a5c72

Browse files
committed
Fix code block styles
1 parent a50a722 commit a6a5c72

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

apps/landing/src/app/(detail)/components/MdxCardFooter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export default function MdxCardFooter({
9494
<Box
9595
borderTop="1px solid $border"
9696
h="100%"
97+
onWheel={(e) => e.stopPropagation()}
9798
overflow="auto"
98-
px="24px"
99-
py="16px"
99+
p={['12px', null, '24px']}
100100
>
101101
{children}
102102
</Box>

apps/landing/src/components/Code.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ export const Code = ({
1717
display: 'none',
1818
}}
1919
>
20-
<SyntaxHighlighter language={language} showLineNumbers style={Light}>
20+
<SyntaxHighlighter
21+
customStyle={{ margin: 0 }}
22+
language={language}
23+
showLineNumbers
24+
style={Light}
25+
>
2126
{value}
2227
</SyntaxHighlighter>
2328
</Box>

0 commit comments

Comments
 (0)