Skip to content

Commit

Permalink
chore: fix filters count sizing on button
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Nov 6, 2024
1 parent 2377773 commit 80b54fc
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/containers/daoExplorer/daoExplorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,11 @@ export const DaoExplorer = () => {
'flex w-full justify-center md:w-fit': isConnected,
});

const buttonGroupContainerClassName = classNames(
'shrink-0 flex gap-x-3 justify-end',
{
'flex md:w-fit': !isConnected && filters.quickFilter === 'featuredDaos',
'flex gap-x-3 w-full md:w-fit justify-between':
isConnected && filters.quickFilter === 'allDaos',
}
);
const buttonGroupContainerClassName = classNames('flex gap-x-3 justify-end', {
'flex md:w-fit': !isConnected && filters.quickFilter === 'featuredDaos',
'flex gap-x-3 w-full md:w-fit justify-between':
isConnected && filters.quickFilter === 'allDaos',
});

/*************************************************
* Render *
Expand Down Expand Up @@ -218,6 +215,7 @@ export const DaoExplorer = () => {
size="md"
iconLeft={IconType.FILTER}
onClick={() => setShowAdvancedFilters(true)}
className="!min-w-fit"
>
{filtersCount}
</Button>
Expand Down Expand Up @@ -296,7 +294,7 @@ export const DaoExplorer = () => {
size="md"
href="/#/create"
onClick={handleWalletButtonClick}
className="w-fit"
className="shrink-0"
>
{t('cta.create.actionLabel')}
</Button>
Expand Down

0 comments on commit 80b54fc

Please sign in to comment.