Skip to content

Commit b66bd10

Browse files
author
Artem Sapegin
committed
Fix: More bullet proof styles
max-width and background on body shouldn't break layout.
1 parent 6bf3bbb commit b66bd10

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/rsg-components/StyleGuide/StyleGuideRenderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Version from 'rsg-components/Version';
99

1010
const styles = ({ color, fontFamily, fontSize, sidebarWidth, mq, space, maxWidth }) => ({
1111
root: {
12+
minHeight: '100vh',
1213
backgroundColor: color.baseBackground,
1314
},
1415
hasSidebar: {

src/styles/styles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const styles = {
66
isolate: false,
77
margin: 0,
88
padding: 0,
9+
minWidth: 0,
10+
maxWidth: '100%',
911
border: 0,
1012
},
1113
};

0 commit comments

Comments
 (0)