mirror of
https://github.com/mue/mue.git
synced 2026-07-13 20:13:47 +02:00
perf: further improve performance
This commit is contained in:
@@ -70,13 +70,11 @@ export default class Search extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<form action={this.state.url} id='searchBar'>
|
||||
{this.state.microphone}
|
||||
<SearchIcon onClick={() => this.searchButton()} id='searchButton'/>
|
||||
<input type='text' placeholder={this.language} name={this.state.query} id='searchtext'/>
|
||||
</form>
|
||||
</>
|
||||
<form action={this.state.url} className='searchBar'>
|
||||
{this.state.microphone}
|
||||
<SearchIcon onClick={() => this.searchButton()} id='searchButton'/>
|
||||
<input type='text' placeholder={this.language} name={this.state.query} id='searchtext'/>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@import '../../../scss/variables';
|
||||
|
||||
#searchBar {
|
||||
.searchBar {
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
top: 20px;
|
||||
|
||||
Reference in New Issue
Block a user