fix(header): normal error padding on search panel

This commit is contained in:
Alexey Kasyanchuk 2018-05-14 11:03:47 +03:00
parent 643cfaf2e1
commit 80fea92cbb
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export default class SearchResults extends Component {
|| (this.props.filesSearchResults && this.props.filesSearchResults.length > 0)
?
<div>
<Subheader inset={true}>Search results for <b>{this.props.searchText}</b></Subheader>
<Subheader className='row center w100p' style={{paddingLeft: 0}} inset={true}><span>Search results for</span> <span style={{marginLeft: '0.4em'}}><b>{this.props.searchText}</b></span></Subheader>
<div className='w100p row center' style={{marginTop: '-16px'}}>{this.props.resultSelector}</div>
</div>
:
@ -92,7 +92,7 @@ export default class SearchResults extends Component {
&& this.props.filesSearchResults && this.props.filesSearchResults.length == 0
&& !this.props.currentSearching
?
<div className='row inline'>
<div className='row inline center w100p pad0-75'>
<svg style={{fill: 'grey', height: '30px'}} viewBox="0 0 264.695 264.695">
<g>
<path d="M219.171,216.785c-4.762,0-10.322,2.3-16.672,6.881l-35.211-12.968l35.734-12.978

View File

@ -256,7 +256,7 @@ class Search extends Component {
return (
<div className="column w100p center">
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: 0, margin: 5, borderRadius: 3}}>
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: this.searchError ? 17 : 0, margin: 5, borderRadius: 3}}>
<TextField
style={{marginTop: -12}}
hintText="Search torrent or file"