Dropdown styles; Search form outside of Header
This commit is contained in:
@ -32,6 +32,9 @@ class Search extends React.Component{
|
||||
if (this.props.params && this.props.params.type && this.props.params.query){
|
||||
this.props.uiActions.startSearch(this.props.params.type, this.props.params.query)
|
||||
}
|
||||
|
||||
// Auto-focus on the input field
|
||||
$(document).find('.search-form input').focus();
|
||||
}
|
||||
|
||||
componentWillReceiveProps(newProps){
|
||||
@ -243,7 +246,8 @@ class Search extends React.Component{
|
||||
|
||||
return (
|
||||
<div className="view search-view">
|
||||
<Header search={(this.props.params && this.props.params.query ? this.props.params.query : null)} options={options} uiActions={this.props.uiActions} />
|
||||
<Header icon="search" options={options} uiActions={this.props.uiActions} />
|
||||
<SearchForm query={this.props.params.query} />
|
||||
<div className="content-wrapper">
|
||||
{ this.renderResults() }
|
||||
</div>
|
||||
|
||||
@ -111,9 +111,9 @@ class LibraryAlbums extends React.Component{
|
||||
</Link>
|
||||
<div className="detail">
|
||||
<Link to={global.baseURL+'album/'+album.uri}>
|
||||
<h3>{ album.name }</h3>
|
||||
<h2>{ album.name }</h2>
|
||||
</Link>
|
||||
<h4><ArtistSentence className="grey-text" artists={album.artists} /></h4>
|
||||
<h3><ArtistSentence className="grey-text" artists={album.artists} /></h3>
|
||||
</div>
|
||||
<div className="list-wrapper">
|
||||
<TrackList tracks={album.tracks} />
|
||||
|
||||
Reference in New Issue
Block a user