1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

resizable SideNav

This commit is contained in:
Dick Choi
2016-09-08 22:36:59 +09:00
parent 0a707b3f02
commit 27e0252ccd
6 changed files with 65 additions and 11 deletions

View File

@@ -50,11 +50,13 @@ class SideNav extends React.Component {
isFolded={isFolded}
/>
})
let style = {}
if (!isFolded) style.width = this.props.width
return (
<div className='SideNav'
styleName={isFolded ? 'root--folded' : 'root'}
tabIndex='1'
style={style}
>
<div styleName='top'>
<button styleName='top-menu'