From 83e9edb573060c8875a2b5289d108cf79a125f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 2 Aug 2021 21:08:06 +0200 Subject: [PATCH] Don't display search tabs until there are results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/compose/components/search_results.js | 2 +- app/styles/components/search.scss | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/compose/components/search_results.js b/app/soapbox/features/compose/components/search_results.js index 5e8b31b8b..be7ec9a9d 100644 --- a/app/soapbox/features/compose/components/search_results.js +++ b/app/soapbox/features/compose/components/search_results.js @@ -75,7 +75,7 @@ export default class SearchResults extends ImmutablePureComponent { return ( <> - + {submitted && } {searchResults} diff --git a/app/styles/components/search.scss b/app/styles/components/search.scss index 84d611fd8..086439caf 100644 --- a/app/styles/components/search.scss +++ b/app/styles/components/search.scss @@ -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)) {