Skip to content

Commit e200c00

Browse files
committed
fix: table styling
1 parent 91bc4e9 commit e200c00

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/components/MarkdownTable.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
import React from "react"
2-
import { Table, TableContainer, Th } from "@chakra-ui/react"
2+
import { Box, Table } from "@chakra-ui/react"
33

44
export interface IProps {
55
children?: React.ReactNode
66
}
77

88
const MarkdownTable: React.FC<IProps> = ({ children }) => (
9-
<TableContainer my={8}>
10-
<Table>
11-
<Th
12-
borderBottom={"1px solid"}
13-
borderColor={"border"}
14-
whiteSpace={"nowrap"}
15-
>
16-
{children}
17-
</Th>
9+
<Box my={8}>
10+
<Table
11+
sx={{
12+
th: {
13+
borderBottom: "1px solid",
14+
borderColor: "border",
15+
whiteSpace: "nowrap",
16+
},
17+
}}
18+
>
19+
{children}
1820
</Table>
19-
</TableContainer>
21+
</Box>
2022
)
2123

2224
export default MarkdownTable

0 commit comments

Comments
 (0)