1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 11:41:44 +00:00

Move selector next to title

This commit is contained in:
bimlas
2018-03-26 14:47:57 +02:00
parent 2a23d19321
commit d493df4295
2 changed files with 44 additions and 57 deletions

View File

@@ -8,29 +8,6 @@
display: flex display: flex
flex-direction column flex-direction column
.control
user-select none
height $control-height
font-size 12px
line-height 25px
display flex
color $ui-inactive-text-color
.control-sortTagsBy
flex 1
padding-left 15px
.control-sortTagsBy-select
appearance: none;
margin-left 5px
color $ui-inactive-text-color
padding 0
border none
background-color transparent
outline none
cursor pointer
font-size 12px
.top .top
padding-bottom 15px padding-bottom 15px
@@ -53,11 +30,33 @@
display flex display flex
flex-direction column flex-direction column
.tag-title .tag-control
display flex
height 30px
line-height 25px
overflow hidden
.tag-control-title
padding-left 15px padding-left 15px
padding-bottom 13px padding-bottom 13px
flex 1
p p
color $ui-button-default-color color $ui-button-default-color
.tag-control-sortTagsBy
user-select none
font-size 12px
color $ui-inactive-text-color
margin-left 12px
margin-right 12px
.tag-control-sortTagsBy-select
appearance: none;
margin-left 5px
color $ui-inactive-text-color
padding 0
border none
background-color transparent
outline none
cursor pointer
font-size 12px
.tagList .tagList
overflow-y auto overflow-y auto
@@ -105,10 +104,6 @@ body[data-theme="white"]
background-color #f9f9f9 background-color #f9f9f9
color $ui-text-color color $ui-text-color
.control
background-color $ui-white-backgroundColor
border-color $ui-white-borderColor
body[data-theme="dark"] body[data-theme="dark"]
.root, .root--folded .root, .root--folded
border-right 1px solid $ui-dark-borderColor border-right 1px solid $ui-dark-borderColor
@@ -118,15 +113,7 @@ body[data-theme="dark"]
.top .top
border-color $ui-dark-borderColor border-color $ui-dark-borderColor
.control
background-color $ui-dark-backgroundColor
border-color $ui-dark-borderColor
body[data-theme="solarized-dark"] body[data-theme="solarized-dark"]
.root, .root--folded .root, .root--folded
background-color $ui-solarized-dark-backgroundColor background-color $ui-solarized-dark-backgroundColor
border-right 1px solid $ui-solarized-dark-borderColor border-right 1px solid $ui-solarized-dark-borderColor
.control
background-color $ui-solarized-dark-backgroundColor
border-color $ui-solarized-dark-borderColor

View File

@@ -115,14 +115,13 @@ class SideNav extends React.Component {
} else { } else {
component = ( component = (
<div styleName='tabBody'> <div styleName='tabBody'>
<div styleName='tag-title'> <div styleName='tag-control'>
<div styleName='tag-control-title'>
<p>{i18n.__('Tags')}</p> <p>{i18n.__('Tags')}</p>
</div> </div>
<div styleName='tagList'> <div styleName='tag-control-sortTagsBy'>
<div styleName='control'>
<div styleName='control-sortTagsBy'>
<i className='fa fa-angle-down' /> <i className='fa fa-angle-down' />
<select styleName='control-sortTagsBy-select' <select styleName='tag-control-sortTagsBy-select'
title={i18n.__('Select filter mode')} title={i18n.__('Select filter mode')}
value={config.sortTagsBy} value={config.sortTagsBy}
onChange={(e) => this.handleSortTagsByChange(e)} onChange={(e) => this.handleSortTagsByChange(e)}
@@ -134,6 +133,7 @@ class SideNav extends React.Component {
</select> </select>
</div> </div>
</div> </div>
<div styleName='tagList'>
{this.tagListComponent(data)} {this.tagListComponent(data)}
</div> </div>
</div> </div>