From 51a68d7e31f080e98216d32d794fd44dbde4ad63 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Mon, 28 Oct 2024 21:30:56 +0100 Subject: [PATCH] chore: continue PR convo resolutions -- mobile filters etc --- src/assets/locales/en/common.json | 4 +--- src/containers/daoExplorer/daoExplorer.tsx | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/assets/locales/en/common.json b/src/assets/locales/en/common.json index fc5dcc89b..2c599e538 100644 --- a/src/assets/locales/en/common.json +++ b/src/assets/locales/en/common.json @@ -1018,9 +1018,7 @@ "myDaos": "My DAOs", "popular": "Popular", "newest": "Newest", - "walletBased": "Wallet-based", - "showMore": "Show more", - "tokenBased": "Token-based" + "showMore": "Show more" }, "activeProposals": "Active proposals", "showMore": "Show more", diff --git a/src/containers/daoExplorer/daoExplorer.tsx b/src/containers/daoExplorer/daoExplorer.tsx index b56716801..7816d814a 100644 --- a/src/containers/daoExplorer/daoExplorer.tsx +++ b/src/containers/daoExplorer/daoExplorer.tsx @@ -79,8 +79,6 @@ export const DaoExplorer = () => { if (!filters) return ''; - if (filters.quickFilter !== 'allDaos') count++; - // plugin Name filter if (filters.pluginNames?.length !== 0) count++; @@ -165,6 +163,7 @@ export const DaoExplorer = () => { isMultiSelect={false} value={filters.quickFilter} onChange={toggleQuickFilters} + className="grid w-full grid-cols-2 gap-1 text-center md:flex md:w-fit md:flex-row" > {quickFilters .filter(f => { @@ -177,16 +176,20 @@ export const DaoExplorer = () => { return true; }) .map(f => ( - + ))} {showSortFilter && ( - <> +
)} @@ -360,9 +364,11 @@ const Title = styled.p.attrs({ })``; const FilterGroupContainer = styled.div.attrs({ - className: 'flex justify-between space-x-3', + className: + 'flex flex-col gap-y-3 md:flex-row items-center md:justify-between', })``; const ButtonGroupContainer = styled.div.attrs({ - className: 'flex space-x-3 items-start', + className: + 'flex flex-row-reverse md:flex-row gap-x-3 items-center justify-center md:w-fit w-full md:justify-between', })``;