add max width of 100% to md content on mobile (#130)

pull/26459/head^2
Paul Wackerow 2 years ago committed by GitHub
parent 9d3be9b1d6
commit bbd4a31bad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/UI/docs/MDComponents.tsx
  2. 2
      src/pages/[...slug].tsx

@ -101,7 +101,7 @@ const MDComponents = {
},
// tables
table: ({ children }: any) => (
<Flex maxW='min(100%, 100vw)' overflowX='auto'>
<Flex overflowX='auto'>
<Table
variant='striped'
colorScheme='greenAlpha'

@ -116,7 +116,7 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
</Stack>
<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
remarkPlugins={[gfm]}
rehypePlugins={[rehypeRaw]}

Loading…
Cancel
Save