Skip to content

Feature/level summary #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 26, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix sidebar decorator overflow
  • Loading branch information
ShMcK committed Oct 26, 2019
commit ff84fa45ea2c9368bc2c8212f4241370f8ac58b5
13 changes: 9 additions & 4 deletions web-app/stories/utils/SideBarDecorator.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import * as React from 'react'

const styles = {
width: '20rem',
borderRight: '2px solid black',
height: window.innerHeight,
container: {
position: 'relative' as 'relative',
boxSizing: 'border-box' as 'border-box',
maxWidth: '20rem',
borderRight: '2px solid black',
width: '20rem',
height: window.innerHeight,
},
}

const SideBarDecorator = storyFn => <div style={styles}>{storyFn()}</div>
const SideBarDecorator = storyFn => <div style={styles.container}>{storyFn()}</div>

export default SideBarDecorator