Skip to content

Commit 80581a1

Browse files
committed
Fix button page layout
1 parent a3d90cf commit 80581a1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/landing/src/app/(detail)/components/button/Examples.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { Colors } from './demo/Colors'
1111
###### Examples
1212

1313
<div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>
14-
<section style={{ flex: '1' }}>
14+
<section style={{ flex: '1', maxWidth: 'calc(50% - 8px)' }}>
1515
<MdxCard src="button/demo/Variants.tsx" demo={<Variants />} />
1616
<MdxCard src="button/demo/Danger.tsx" demo={<Danger />} />
1717
<MdxCard src="button/demo/Disabled.tsx" demo={<Disabled />} />
1818
</section>
19-
<section style={{ flex: '1' }}>
19+
<section style={{ flex: '1', maxWidth: 'calc(50% - 8px)' }}>
2020
<MdxCard src="button/demo/Icon.tsx" demo={<Icon />} />
2121
<MdxCard src="button/demo/Colors.tsx" demo={<Colors />} />
2222
</section>

apps/landing/src/app/(detail)/components/button/demo/Variants.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Box, css } from '@devup-ui/react'
88
export function Variants() {
99
return (
1010
<>
11-
<Box display="flex" gap="12px" marginBottom="16px">
11+
<Box display="flex" flexWrap="wrap" gap="12px" marginBottom="16px">
1212
<Button
1313
className={css({ height: 'min-content' })}
1414
size="sm"
@@ -31,7 +31,7 @@ export function Variants() {
3131
Primary lg
3232
</Button>
3333
</Box>
34-
<Box display="flex" gap="12px" marginBottom="16px">
34+
<Box display="flex" flexWrap="wrap" gap="12px" marginBottom="16px">
3535
<Button className={css({ height: 'min-content' })} size="sm">
3636
Default sm
3737
</Button>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default function Layout({
1717
<Box
1818
className="markdown-body"
1919
flex={1}
20+
overflow="auto"
2021
px={['16px', '30px', '60px']}
2122
py={['24px', '40px']}
2223
w="100%"

0 commit comments

Comments
 (0)