Merge branch 'hide-search-tabs' into 'develop'

Don't display search tabs until there are results

See merge request soapbox-pub/soapbox-fe!658
This commit is contained in:
Alex Gleason 2021-08-02 19:26:26 +00:00
commit 5aec1cc8e8
2 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,7 @@ export default class SearchResults extends ImmutablePureComponent {
return (
<>
<FilterBar selectedFilter={submitted ? selectedFilter : null} selectFilter={this.handleSelectFilter} />
{submitted && <FilterBar selectedFilter={submitted ? selectedFilter : null} selectFilter={this.handleSelectFilter} />}
{searchResults}

View file

@ -1,5 +1,7 @@
.search-page {
min-height: 97px;
.drawer__inner:not(:empty) {
min-height: 48px;
}
}
@media screen and (min-width: 600px + (285px * 1) + (10px * 1)) {