From 99471f6706359ce3598787693a7ac96838d7a186 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sat, 22 Nov 2025 15:37:52 +0800 Subject: [PATCH] style(providers): optimize card layout and action button sizes Improve provider card visual density and action buttons. - Reduce icon button sizes for compact layout - Adjust drag handle and icon sizes - Tighten spacing between action buttons - Update hover translate values for better alignment --- src/components/providers/ProviderActions.tsx | 9 +++++++-- src/components/providers/ProviderCard.tsx | 12 ++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/providers/ProviderActions.tsx b/src/components/providers/ProviderActions.tsx index 1f9c1f0..18df7bf 100644 --- a/src/components/providers/ProviderActions.tsx +++ b/src/components/providers/ProviderActions.tsx @@ -21,16 +21,17 @@ export function ProviderActions({ onDelete, }: ProviderActionsProps) { const { t } = useTranslation(); + const iconButtonClass = "h-8 w-8 p-1"; return ( -
+
@@ -63,6 +65,7 @@ export function ProviderActions({ variant="ghost" onClick={onDuplicate} title={t("provider.duplicate")} + className={iconButtonClass} > @@ -72,6 +75,7 @@ export function ProviderActions({ variant="ghost" onClick={onConfigureUsage} title={t("provider.configureUsage")} + className={iconButtonClass} > @@ -82,6 +86,7 @@ export function ProviderActions({ onClick={isCurrent ? undefined : onDelete} title={t("common.delete")} className={cn( + iconButtonClass, !isCurrent && "hover:text-red-500 dark:hover:text-red-400", isCurrent && "opacity-40 cursor-not-allowed text-muted-foreground", )} diff --git a/src/components/providers/ProviderCard.tsx b/src/components/providers/ProviderCard.tsx index 91a433d..1a60cb6 100644 --- a/src/components/providers/ProviderCard.tsx +++ b/src/components/providers/ProviderCard.tsx @@ -125,11 +125,11 @@ export function ProviderCard({ >
-
+