mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 14:49:57 +08:00
Collapse search input on tablets. closes flarum/core#162
While this solution isn't perfect (perhaps a search icon which opens a dropdown would be better, like Discourse does) - it'll do for now :)
This commit is contained in:
@ -77,6 +77,7 @@ export default class Search extends Component {
|
||||
return (
|
||||
<div className={'Search ' + classList({
|
||||
open: this.value() && this.hasFocus,
|
||||
focused: this.hasFocus,
|
||||
active: !!currentSearch,
|
||||
loading: !!this.loadingSources
|
||||
})}>
|
||||
|
Reference in New Issue
Block a user