add max width of 100% to md content on mobile (#130)
This commit is contained in:
parent
9d3be9b1d6
commit
bbd4a31bad
|
@ -101,7 +101,7 @@ const MDComponents = {
|
||||||
},
|
},
|
||||||
// tables
|
// tables
|
||||||
table: ({ children }: any) => (
|
table: ({ children }: any) => (
|
||||||
<Flex maxW='min(100%, 100vw)' overflowX='auto'>
|
<Flex overflowX='auto'>
|
||||||
<Table
|
<Table
|
||||||
variant='striped'
|
variant='striped'
|
||||||
colorScheme='greenAlpha'
|
colorScheme='greenAlpha'
|
||||||
|
|
|
@ -116,7 +116,7 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Flex width='100%' placeContent='space-between' gap={8}>
|
<Flex width='100%' placeContent='space-between' gap={8}>
|
||||||
<Stack maxW='768px' sx={{ "*:first-of-type": { marginTop: '0 !important' } }}>
|
<Stack maxW='min(100%, 768px)' sx={{ "*:first-of-type": { marginTop: '0 !important' } }}>
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
remarkPlugins={[gfm]}
|
remarkPlugins={[gfm]}
|
||||||
rehypePlugins={[rehypeRaw]}
|
rehypePlugins={[rehypeRaw]}
|
||||||
|
|
Loading…
Reference in New Issue