From 6d391a2d9cd0ade492ea67fa4e056487e72dff47 Mon Sep 17 00:00:00 2001 From: Vardhaman Bhandari <97441447+Vardhaman619@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:53:55 +0530 Subject: [PATCH] Fix icon resizing issue for Notes and Tasks (#7318) This pull request addresses a [resizing issue with the Notes and Tasks icons](https://github.com/twentyhq/twenty/issues/7282). Previously, the icons would change size based on the length of the title or when the column width was adjusted, leading to inconsistent UI behavior. This update ensures that the icons maintain a stable size, enhancing the overall user experience. Solves Issue : #7282 [twenty-icon-sizing-issue.webm](https://github.com/user-attachments/assets/3ef59592-4dfb-463e-bc7b-a803ee105211) --- packages/twenty-ui/src/display/chip/components/Chip.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/twenty-ui/src/display/chip/components/Chip.tsx b/packages/twenty-ui/src/display/chip/components/Chip.tsx index 02d7e2e61309..8ff16e9a9db1 100644 --- a/packages/twenty-ui/src/display/chip/components/Chip.tsx +++ b/packages/twenty-ui/src/display/chip/components/Chip.tsx @@ -111,6 +111,10 @@ const StyledContainer = withTheme(styled.div< border-radius: ${({ theme, variant }) => variant === ChipVariant.Rounded ? '50px' : theme.border.radius.sm}; + + & > svg { + flex-shrink: 0; + } `); export const Chip = ({