mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Fix search area layout
This commit is contained in:
@@ -19,22 +19,17 @@ $control-height = 34px
|
|||||||
|
|
||||||
.control-search
|
.control-search
|
||||||
height 32px
|
height 32px
|
||||||
|
width 1px
|
||||||
flex 1
|
flex 1
|
||||||
background-color white
|
background-color white
|
||||||
position relative
|
position relative
|
||||||
|
|
||||||
.control-search-icon
|
|
||||||
absolute top bottom left
|
|
||||||
line-height 32px
|
|
||||||
padding-left 2px
|
|
||||||
width 35px
|
|
||||||
color $ui-inactive-text-color
|
|
||||||
background-color $ui-noteList-backgroundColor
|
|
||||||
|
|
||||||
.control-search-input
|
.control-search-input
|
||||||
display block
|
display block
|
||||||
absolute top bottom right
|
absolute top bottom right
|
||||||
left 30px
|
width 100%
|
||||||
|
padding-left 12px
|
||||||
|
background-color $ui-noteList-backgroundColor
|
||||||
input
|
input
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
@@ -134,6 +129,7 @@ body[data-theme="dark"]
|
|||||||
background-color $ui-dark-noteList-backgroundColor
|
background-color $ui-dark-noteList-backgroundColor
|
||||||
|
|
||||||
.control-search-input
|
.control-search-input
|
||||||
|
background-color $ui-dark-noteList-backgroundColor
|
||||||
input
|
input
|
||||||
background-color $ui-dark-noteList-backgroundColor
|
background-color $ui-dark-noteList-backgroundColor
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|||||||
@@ -205,7 +205,6 @@ class TopBar extends React.Component {
|
|||||||
>
|
>
|
||||||
<div styleName='control'>
|
<div styleName='control'>
|
||||||
<div styleName='control-search'>
|
<div styleName='control-search'>
|
||||||
<i styleName='control-search-icon' className='fa fa-search fa-fw' />
|
|
||||||
<div styleName='control-search-input'
|
<div styleName='control-search-input'
|
||||||
onFocus={(e) => this.handleSearchFocus(e)}
|
onFocus={(e) => this.handleSearchFocus(e)}
|
||||||
onBlur={(e) => this.handleSearchBlur(e)}
|
onBlur={(e) => this.handleSearchBlur(e)}
|
||||||
@@ -216,7 +215,7 @@ class TopBar extends React.Component {
|
|||||||
ref='searchInput'
|
ref='searchInput'
|
||||||
value={this.state.search}
|
value={this.state.search}
|
||||||
onChange={(e) => this.handleSearchChange(e)}
|
onChange={(e) => this.handleSearchChange(e)}
|
||||||
placeholder=''
|
placeholder='Search'
|
||||||
type='text'
|
type='text'
|
||||||
className='searchInput'
|
className='searchInput'
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user