Skip to content

Commit

Permalink
fix: Disable Zoom feature for tables on Markdown files to have links …
Browse files Browse the repository at this point in the history
…clickable
  • Loading branch information
LulaV14 committed May 11, 2022
1 parent 900302b commit 37ae7c3
Showing 1 changed file with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,22 +260,20 @@ export const ChakraUIRenderer = (
const defaultProps = { variant: 'simple', size: 'sm' };

return (
<Zoom>
<Box
width={width || 'fit-content'}
overflow="auto"
py="0.5rem"
mb="1rem"
{...(border === 'true'
? { border: '1px solid', borderRadius: 'lg', borderColor: 'snowstorm.300', p: '1rem' }
: {})}
>
<Table {...defaultProps} {...props}>
{caption && <TableCaption>{caption}</TableCaption>}
{children}
</Table>
</Box>
</Zoom>
<Box
width={width || 'fit-content'}
overflow="auto"
py="0.5rem"
mb="1rem"
{...(border === 'true'
? { border: '1px solid', borderRadius: 'lg', borderColor: 'snowstorm.300', p: '1rem' }
: {})}
>
<Table {...defaultProps} {...props}>
{caption && <TableCaption>{caption}</TableCaption>}
{children}
</Table>
</Box>
);
},
thead: ({ children, ...props }) => {
Expand Down

0 comments on commit 37ae7c3

Please sign in to comment.