From 3ed17a362b65c0407c21244d6e6b8e3806f2bb3e Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 04:42:41 -0400 Subject: [PATCH] Make search look better on larger screens --- src/assets/css/main.css | 4 +++- src/shared/components/search.tsx | 33 +++++++++++++------------------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index d1e500c0..c7df1ce2 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -439,6 +439,8 @@ br.big { } input[type="checkbox"], -.form-check label { +.form-check label, +select, +option { cursor: pointer; } diff --git a/src/shared/components/search.tsx b/src/shared/components/search.tsx index 473b18c4..5d87ceb6 100644 --- a/src/shared/components/search.tsx +++ b/src/shared/components/search.tsx @@ -181,7 +181,7 @@ const Filter = ({ loading: boolean; }) => { return ( -
+
@@ -454,7 +454,7 @@ export class Search extends Component { const { type, page } = getSearchQueryParams(); return ( -
+
{ {I18NextService.i18n.t("no_results")} )} -
+ ); } @@ -526,13 +526,8 @@ export class Search extends Component { creatorSearchOptions, searchCommunitiesLoading, searchCreatorLoading, - communitiesRes, } = this.state; - const hasCommunities = - communitiesRes.state == "success" && - communitiesRes.data.communities.length > 0; - return (