Skip to content

Commit 2de7085

Browse files
committed
Fix mobile table scroll: add horizontal scroll and prevent text wrap
1 parent dccd7d6 commit 2de7085

File tree

1 file changed

+8
-2
lines changed
  • apps/landing/src/components/mdx/components/Table

1 file changed

+8
-2
lines changed

apps/landing/src/components/mdx/components/Table/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ import { type ComponentProps } from 'react'
33

44
export const Table = ({ ...props }: ComponentProps<'table'>) => {
55
return (
6-
<Box borderRadius="0.5rem" overflow="visible">
7-
<Box {...props} as="table" borderCollapse="collapse" borderSpacing={0} />
6+
<Box borderRadius="0.5rem" overflowX="auto">
7+
<Box
8+
{...props}
9+
as="table"
10+
borderCollapse="collapse"
11+
borderSpacing={0}
12+
whiteSpace="nowrap"
13+
/>
814
</Box>
915
)
1016
}

0 commit comments

Comments
 (0)