From 65c2eef3fc1d7bf1ca7a811b7628c583016575f1 Mon Sep 17 00:00:00 2001 From: wlren Date: Mon, 31 Oct 2022 11:17:36 +0800 Subject: [PATCH] [questions][ui] reduce gap --- apps/portal/src/pages/questions/browse.tsx | 114 +++++++++++---------- 1 file changed, 58 insertions(+), 56 deletions(-) diff --git a/apps/portal/src/pages/questions/browse.tsx b/apps/portal/src/pages/questions/browse.tsx index c61ac433..9a974f5d 100644 --- a/apps/portal/src/pages/questions/browse.tsx +++ b/apps/portal/src/pages/questions/browse.tsx @@ -486,7 +486,7 @@ export default function QuestionsBrowsePage() {
-
+
{ const { cityId, countryId, stateId } = data.location; @@ -502,62 +502,64 @@ export default function QuestionsBrowsePage() { }); }} /> -
- { - setFilterDrawerOpen(!filterDrawerOpen); - }} - onSortOrderChange={setSortOrder} - onSortTypeChange={setSortType} - /> -
-
- {(questionsQueryData?.pages ?? []).flatMap( - ({ data: questions }) => - questions.map((question) => { - const { companyCounts, countryCounts, roleCounts } = - relabelQuestionAggregates( - question.aggregatedQuestionEncounters, - ); +
+
+ { + setFilterDrawerOpen(!filterDrawerOpen); + }} + onSortOrderChange={setSortOrder} + onSortTypeChange={setSortType} + /> +
+
+ {(questionsQueryData?.pages ?? []).flatMap( + ({ data: questions }) => + questions.map((question) => { + const { companyCounts, countryCounts, roleCounts } = + relabelQuestionAggregates( + question.aggregatedQuestionEncounters, + ); - return ( - - ); - }), - )} - {questionCount !== 0 && ( - - )} - {questionCount === 0 && ( -
- -

Nothing found.

- {hasFilters &&

Try changing your search criteria.

} -
- )} + return ( + + ); + }), + )} + {questionCount !== 0 && ( + + )} + {questionCount === 0 && ( +
+ +

Nothing found.

+ {hasFilters &&

Try changing your search criteria.

} +
+ )} +