The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix filter button height (#11237)
vaibhav-devere8127e4f6359d
diff --git a/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsx b/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsxindex 317be0082d7..d56c226ab89 100644--- a/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsx+++ b/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsx@@ -29,6 +29,7 @@ import { isViewBarExpandedComponentState } from '@/views/states/isViewBarExpandeimport { t } from '@lingui/core/macro';import { isNonEmptyArray } from '@sniptt/guards';import { isDefined } from 'twenty-shared/utils';+import { LightButton } from 'twenty-ui';export type ViewBarDetailsProps = {hasFilterButton?: boolean;@@ -63,18 +64,11 @@ const StyledChipcontainer = styled.div`z-index: 1;`;-const StyledCancelButton = styled.button`- background-color: inherit;- border: none;- color: ${({ theme }) => theme.font.color.tertiary};- cursor: pointer;- font-weight: ${({ theme }) => theme.font.weight.medium};- user-select: none;- margin-right: ${({ theme }) => theme.spacing(2)};- &:hover {- background-color: ${({ theme }) => theme.background.tertiary};- border-radius: ${({ theme }) => theme.spacing(1)};- }+const StyledActionButtonContainer = styled.div`+ display: flex;+ flex-direction: row;+ gap: ${({ theme }) => theme.spacing(2)};+ padding-top: ${({ theme }) => theme.spacing(1)};`;const StyledFilterContainer = styled.div`@@ -257,15 +251,17 @@ export const ViewBarDetails = ({</StyledAddFilterContainer>)}</StyledFilterContainer>- {canResetView && (- <StyledCancelButton- data-testid="cancel-button"- onClick={handleCancelClick}- >- {t`Reset`}- </StyledCancelButton>- )}- {rightComponent}+ <StyledActionButtonContainer>+ {canResetView && (+ <LightButton+ data-testid="cancel-button"+ accent="tertiary"+ title={t`Reset`}+ onClick={handleCancelClick}+ />+ )}+ {rightComponent}+ </StyledActionButtonContainer></StyledBar>);};