diff --git a/src-web/components/core/Button.tsx b/src-web/components/core/Button.tsx index af38b654..9d64b4b4 100644 --- a/src-web/components/core/Button.tsx +++ b/src-web/components/core/Button.tsx @@ -15,6 +15,7 @@ const colorStyles = { }; export type ButtonProps = HTMLAttributes & { + innerClassName?: string; color?: keyof typeof colorStyles; isLoading?: boolean; size?: 'sm' | 'md' | 'xs'; @@ -32,6 +33,7 @@ const _Button = forwardRef(function Button( { isLoading, className, + innerClassName, children, forDropdown, color, @@ -70,7 +72,7 @@ const _Button = forwardRef(function Button( ) : leftSlot ? (
{leftSlot}
) : null} -
{children}
+
{children}
{rightSlot &&
{rightSlot}
} {forDropdown && } diff --git a/src-web/components/core/IconButton.tsx b/src-web/components/core/IconButton.tsx index b9b9994b..542dcd52 100644 --- a/src-web/components/core/IconButton.tsx +++ b/src-web/components/core/IconButton.tsx @@ -45,6 +45,7 @@ export const IconButton = forwardRef(function IconButt disabled={icon === 'empty'} tabIndex={tabIndex ?? icon === 'empty' ? -1 : undefined} onClick={handleClick} + innerClassName="flex items-center justify-center" className={classNames( className, 'flex-shrink-0 text-gray-700 hover:text-gray-1000', diff --git a/src-web/components/core/PairEditor.tsx b/src-web/components/core/PairEditor.tsx index 60ee71ed..6197c5bc 100644 --- a/src-web/components/core/PairEditor.tsx +++ b/src-web/components/core/PairEditor.tsx @@ -379,7 +379,7 @@ const FormRow = memo(function FormRow({ size="sm" title="Delete header" onClick={showDelete ? handleDelete : undefined} - className="ml-0.5 !opacity-0 group-hover:!opacity-100 focus-visible:!opacity-100" + className="ml-0.5 group-hover:!opacity-100 focus-visible:!opacity-100" /> );