From 44018911f2f27576bf74e396c880c598f650b4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Mon, 3 Mar 2025 15:02:30 +0100 Subject: [PATCH] Fix buttons size (#10620) The button size attribute was removed accidentally in this PR https://github.com/twentyhq/twenty/pull/10536, I'm putting it back. All the buttons were 32px instead of 24px for the small ones. --- .../src/input/button/components/Button/Button.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/twenty-ui/src/input/button/components/Button/Button.tsx b/packages/twenty-ui/src/input/button/components/Button/Button.tsx index bdad2a48b..62cbb1bad 100644 --- a/packages/twenty-ui/src/input/button/components/Button/Button.tsx +++ b/packages/twenty-ui/src/input/button/components/Button/Button.tsx @@ -2,13 +2,13 @@ import isPropValid from '@emotion/is-prop-valid'; import { css } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@ui/display/icon/types/IconComponent'; +import { ButtonHotkeys } from '@ui/input/button/components/Button/internal/ButtonHotKeys'; +import { ButtonIcon } from '@ui/input/button/components/Button/internal/ButtonIcon'; +import { ButtonSoon } from '@ui/input/button/components/Button/internal/ButtonSoon'; import { useIsMobile } from '@ui/utilities'; import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { ButtonText } from './internal/ButtonText'; -import { ButtonIcon } from '@ui/input/button/components/Button/internal/ButtonIcon'; -import { ButtonSoon } from '@ui/input/button/components/Button/internal/ButtonSoon'; -import { ButtonHotkeys } from '@ui/input/button/components/Button/internal/ButtonHotKeys'; export type ButtonSize = 'medium' | 'small'; export type ButtonPosition = 'standalone' | 'left' | 'middle' | 'right'; @@ -466,6 +466,7 @@ export const Button = ({ loading={loading} onFocus={() => setIsFocused(true)} onBlur={() => setIsFocused(false)} + size={size} > {hotkeys && !isMobile && (