feat(twenty-front): improve dropdown menu header (#10672)

This commit is contained in:
Antoine Moreaux
2025-03-17 16:10:52 +01:00
committed by GitHub
parent c4efb45f04
commit 8db8d9ad00
27 changed files with 294 additions and 110 deletions

View File

@ -54,14 +54,17 @@ const StyledButton = styled.button<
font-family: ${({ theme }) => theme.font.family};
font-weight: ${({ theme }) => theme.font.weight.regular};
gap: ${({ theme }) => theme.spacing(1)};
height: ${({ size }) => (size === 'small' ? '24px' : '32px')};
height: ${({ size, theme }) =>
size === 'small' ? theme.spacing(6) : theme.spacing(8)};
justify-content: center;
padding: ${({ theme }) => theme.spacing(1)};
transition: background 0.1s ease;
white-space: nowrap;
width: ${({ size }) => (size === 'small' ? '24px' : '32px')};
min-width: ${({ size }) => (size === 'small' ? '24px' : '32px')};
width: ${({ size, theme }) =>
size === 'small' ? theme.spacing(6) : theme.spacing(8)};
min-width: ${({ size, theme }) =>
size === 'small' ? theme.spacing(6) : theme.spacing(8)};
&:hover {
background: ${({ theme, disabled }) =>