8000 fix sidebar decorator overflow · crabbedbushel/coderoad-vscode@ff84fa4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff84fa4

Browse files
committed
fix sidebar decorator overflow
1 parent 74feeab commit ff84fa4

File tree

Expand file tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import * as React from 'react'
22

33
const styles = {
4-
width: '20rem',
5-
borderRight: '2px solid black',
6-
height: window.innerHeight,
4+
container: {
5+
position: 'relative' as 'relative',
6+
boxSizing: 'border-box' as 'border-box',
7+
maxWidth: '20rem',
8+
borderRight: '2px solid black',
9+
width: '20rem',
10+
height: window.innerHeight,
11+
},
712
}
813

9-
const SideBarDecorator = storyFn => <div style={styles}>{storyFn()}</div>
14+
const SideBarDecorator = storyFn => <div style={styles.container}>{storyFn()}</div>
1015

1116
export default SideBarDecorator

0 commit comments

Comments
 (0)
0