diff --git a/app/client/packages/design-system/ads/src/Button/Button.styles.tsx b/app/client/packages/design-system/ads/src/Button/Button.styles.tsx index b5e58e42b28..1fd71a2ca84 100644 --- a/app/client/packages/design-system/ads/src/Button/Button.styles.tsx +++ b/app/client/packages/design-system/ads/src/Button/Button.styles.tsx @@ -29,6 +29,7 @@ const getSizes = (size: ButtonSizes, isIconButton?: boolean) => { ? "var(--ads-v2-spaces-2)" : "var(--ads-v2-spaces-2) var(--ads-v2-spaces-3)"}; --button-gap: var(--ads-v2-spaces-2); + --button-min-width: 60px; `, md: css` --button-font-weight: 600; @@ -37,6 +38,7 @@ const getSizes = (size: ButtonSizes, isIconButton?: boolean) => { ? "var(--ads-v2-spaces-3)" : "var(--ads-v2-spaces-3) var(--ads-v2-spaces-4)"}; --button-gap: var(--ads-v2-spaces-3); + --button-min-width: 80px; `, }; @@ -175,6 +177,8 @@ export const ButtonContent = styled.div<{ box-sizing: border-box; padding: var(--button-padding); border-radius: inherit; + min-width: ${({ isIconButton }) => + isIconButton ? "unset" : "var(--button-min-width)"}; & > .${ButtonContentChildrenClassName} { display: flex; diff --git a/app/client/src/ce/pages/Applications/index.tsx b/app/client/src/ce/pages/Applications/index.tsx index df8d6176a5d..5c3e54af7fb 100644 --- a/app/client/src/ce/pages/Applications/index.tsx +++ b/app/client/src/ce/pages/Applications/index.tsx @@ -318,6 +318,7 @@ export function LeftPaneSection(props: {