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
|
||||
height 32px
|
||||
width 1px
|
||||
flex 1
|
||||
background-color white
|
||||
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
|
||||
display block
|
||||
absolute top bottom right
|
||||
left 30px
|
||||
width 100%
|
||||
padding-left 12px
|
||||
background-color $ui-noteList-backgroundColor
|
||||
input
|
||||
width 100%
|
||||
height 100%
|
||||
@@ -134,6 +129,7 @@ body[data-theme="dark"]
|
||||
background-color $ui-dark-noteList-backgroundColor
|
||||
|
||||
.control-search-input
|
||||
background-color $ui-dark-noteList-backgroundColor
|
||||
input
|
||||
background-color $ui-dark-noteList-backgroundColor
|
||||
color $ui-dark-text-color
|
||||
|
||||
@@ -205,7 +205,6 @@ class TopBar extends React.Component {
|
||||
>
|
||||
<div styleName='control'>
|
||||
<div styleName='control-search'>
|
||||
<i styleName='control-search-icon' className='fa fa-search fa-fw' />
|
||||
<div styleName='control-search-input'
|
||||
onFocus={(e) => this.handleSearchFocus(e)}
|
||||
onBlur={(e) => this.handleSearchBlur(e)}
|
||||
@@ -216,7 +215,7 @@ class TopBar extends React.Component {
|
||||
ref='searchInput'
|
||||
value={this.state.search}
|
||||
onChange={(e) => this.handleSearchChange(e)}
|
||||
placeholder=''
|
||||
placeholder='Search'
|
||||
type='text'
|
||||
className='searchInput'
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user