Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
Fix examples that render with inherent width
Browse files Browse the repository at this point in the history
Fixes #648
  • Loading branch information
maiertech committed Dec 4, 2020
1 parent 15c930f commit 24da3cc
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 113 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@undataforum/assets": "*",
"@undataforum/components": "*",
"@undataforum/preset": "*",
"gatsby": "^2.26.1",
"gatsby": "^2.28.0",
"prop-types": "^15.7.2",
"react": "^16.14.0",
"react-dom": "^16.14.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react';
import { node } from 'prop-types';
import { ThemeProvider } from 'theme-ui';
import { Box, ThemeProvider } from 'theme-ui';
import preset from '@theme-ui/preset-base';

const LivePreviewWrapper = ({ children }) => (
<ThemeProvider theme={preset}>{children}</ThemeProvider>
<ThemeProvider theme={preset}>
<Box sx={{ width: '100%' }}>{children}</Box>{' '}
</ThemeProvider>
);

LivePreviewWrapper.propTypes = {
Expand Down
Loading

1 comment on commit 24da3cc

@vercel
Copy link

@vercel vercel bot commented on 24da3cc Dec 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.