mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-24 07:01:48 +00:00
resizable SideNav
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
margin 2px 0
|
||||
text-align left
|
||||
border none
|
||||
overflow ellipsis
|
||||
font-size 14px
|
||||
&:first-child
|
||||
margin-top 0
|
||||
|
||||
@@ -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