Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74feeab commit ff84fa4Copy full SHA for ff84fa4
web-app/stories/utils/SideBarDecorator.tsx
@@ -1,11 +1,16 @@
1
import * as React from 'react'
2
3
const styles = {
4
- width: '20rem',
5
- borderRight: '2px solid black',
6
- height: window.innerHeight,
+ container: {
+ position: 'relative' as 'relative',
+ boxSizing: 'border-box' as 'border-box',
7
+ maxWidth: '20rem',
8
+ borderRight: '2px solid black',
9
+ width: '20rem',
10
+ height: window.innerHeight,
11
+ },
12
}
13
-const SideBarDecorator = storyFn => <div style={styles}>{storyFn()}</div>
14
+const SideBarDecorator = storyFn => <div style={styles.container}>{storyFn()}</div>
15
16
export default SideBarDecorator
0 commit comments