mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
Move selector next to title
This commit is contained in:
@@ -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
|
||||||
padding-left 15px
|
display flex
|
||||||
padding-bottom 13px
|
height 30px
|
||||||
p
|
line-height 25px
|
||||||
color $ui-button-default-color
|
overflow hidden
|
||||||
|
.tag-control-title
|
||||||
|
padding-left 15px
|
||||||
|
padding-bottom 13px
|
||||||
|
flex 1
|
||||||
|
p
|
||||||
|
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
|
|
||||||
|
|||||||
@@ -115,25 +115,25 @@ class SideNav extends React.Component {
|
|||||||
} else {
|
} else {
|
||||||
component = (
|
component = (
|
||||||
<div styleName='tabBody'>
|
<div styleName='tabBody'>
|
||||||
<div styleName='tag-title'>
|
<div styleName='tag-control'>
|
||||||
<p>{i18n.__('Tags')}</p>
|
<div styleName='tag-control-title'>
|
||||||
|
<p>{i18n.__('Tags')}</p>
|
||||||
|
</div>
|
||||||
|
<div styleName='tag-control-sortTagsBy'>
|
||||||
|
<i className='fa fa-angle-down' />
|
||||||
|
<select styleName='tag-control-sortTagsBy-select'
|
||||||
|
title={i18n.__('Select filter mode')}
|
||||||
|
value={config.sortTagsBy}
|
||||||
|
onChange={(e) => this.handleSortTagsByChange(e)}
|
||||||
|
>
|
||||||
|
<option title='Sort alphabetically'
|
||||||
|
value='ALPHABETICAL'>{i18n.__('Alphabetically')}</option>
|
||||||
|
<option title='Sort by update time'
|
||||||
|
value='COUNTER'>{i18n.__('Counter')}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div styleName='tagList'>
|
<div styleName='tagList'>
|
||||||
<div styleName='control'>
|
|
||||||
<div styleName='control-sortTagsBy'>
|
|
||||||
<i className='fa fa-angle-down' />
|
|
||||||
<select styleName='control-sortTagsBy-select'
|
|
||||||
title={i18n.__('Select filter mode')}
|
|
||||||
value={config.sortTagsBy}
|
|
||||||
onChange={(e) => this.handleSortTagsByChange(e)}
|
|
||||||
>
|
|
||||||
<option title='Sort alphabetically'
|
|
||||||
value='ALPHABETICAL'>{i18n.__('Alphabetically')}</option>
|
|
||||||
<option title='Sort by update time'
|
|
||||||
value='COUNTER'>{i18n.__('Counter')}</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{this.tagListComponent(data)}
|
{this.tagListComponent(data)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user