mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
resizable SideNav
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user