1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-24 23:34:03 +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
+2
View File
@@ -22,6 +22,7 @@
.top-menu-label
margin-left 5px
overflow ellipsis
.menu
margin-top 15px
@@ -33,6 +34,7 @@
font-size 14px
width 100%
text-align left
overflow ellipsis
.menu-button--active
@extend .menu-button
+1
View File
@@ -65,6 +65,7 @@
margin 2px 0
text-align left
border none
overflow ellipsis
font-size 14px
&:first-child
margin-top 0
+3 -1
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'