diff --git a/web/app/components/base/action-button/index.css b/web/app/components/base/action-button/index.css index 96fbb14c6c..13f333b11d 100644 --- a/web/app/components/base/action-button/index.css +++ b/web/app/components/base/action-button/index.css @@ -2,9 +2,7 @@ @layer components { .action-btn { - @apply inline-flex justify-center items-center cursor-pointer text-text-tertiary - hover:text-text-secondary - hover:bg-state-base-hover + @apply inline-flex justify-center items-center cursor-pointer text-text-tertiary hover:text-text-secondary hover:bg-state-base-hover } .action-btn-disabled { @@ -29,21 +27,15 @@ } .action-btn.action-btn-active { - @apply - text-text-accent - bg-state-accent-active - hover:bg-state-accent-active-alt + @apply text-text-accent bg-state-accent-active hover:bg-state-accent-active-alt } .action-btn.action-btn-disabled { - @apply - text-text-disabled + @apply text-text-disabled } .action-btn.action-btn-destructive { - @apply - text-text-destructive - bg-state-destructive-hover + @apply text-text-destructive bg-state-destructive-hover } } \ No newline at end of file diff --git a/web/app/components/base/action-button/index.tsx b/web/app/components/base/action-button/index.tsx index 9e4552a2b7..845edfbd6d 100644 --- a/web/app/components/base/action-button/index.tsx +++ b/web/app/components/base/action-button/index.tsx @@ -28,7 +28,7 @@ const actionButtonVariants = cva( ) export type ActionButtonProps = { - size?: 'xs' | 'm' | 'l' | 'xl' + size?: 'xs' | 's' | 'm' | 'l' | 'xl' state?: ActionButtonState styleCss?: CSSProperties } & React.ButtonHTMLAttributes & VariantProps diff --git a/web/app/components/plugins/plugin-item/action.tsx b/web/app/components/plugins/plugin-item/action.tsx index 998c808654..59ab0e3e0f 100644 --- a/web/app/components/plugins/plugin-item/action.tsx +++ b/web/app/components/plugins/plugin-item/action.tsx @@ -33,21 +33,21 @@ const Action: FC = ({ return (
{isShowFetchNewVersion - &&
- -
+ && + + } { isShowInfo && - + } { isShowDelete - &&
- -
+ && + + } {isShowPluginInfo && (