refine: improve UI consistency and spacing in header and provider cards
- Reduce header spacing (gap-4 → gap-2, gap-1.5 → gap-1) for more compact layout - Unify provider link colors with main title (blue-500/blue-400) - Standardize action button styles to use size="icon" for consistent hover effects - Add proper hover backgrounds to provider action buttons matching header buttons
This commit is contained in:
@@ -45,35 +45,32 @@ export function ProviderActions({
|
||||
)}
|
||||
</Button>
|
||||
|
||||
<div className="flex items-center gap-0">
|
||||
<div className="flex items-center gap-1">
|
||||
<Button
|
||||
size="sm"
|
||||
size="icon"
|
||||
variant="ghost"
|
||||
onClick={onEdit}
|
||||
title={t("common.edit")}
|
||||
className="px-2 hover:bg-muted"
|
||||
>
|
||||
<Edit className="h-4 w-4" />
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="sm"
|
||||
size="icon"
|
||||
variant="ghost"
|
||||
onClick={onConfigureUsage}
|
||||
title={t("provider.configureUsage")}
|
||||
className="px-2 hover:bg-muted"
|
||||
>
|
||||
<BarChart3 className="h-4 w-4" />
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="sm"
|
||||
size="icon"
|
||||
variant="ghost"
|
||||
onClick={isCurrent ? undefined : onDelete}
|
||||
title={t("common.delete")}
|
||||
className={cn(
|
||||
"px-2",
|
||||
!isCurrent && "hover:bg-muted hover:text-red-500 dark:hover:text-red-400",
|
||||
!isCurrent && "hover:text-red-500 dark:hover:text-red-400",
|
||||
isCurrent && "opacity-40 cursor-not-allowed text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -132,7 +132,7 @@ export function ProviderCard({
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleOpenWebsite}
|
||||
className="inline-flex items-center text-sm text-blue-400 transition-colors hover:underline dark:text-blue-300"
|
||||
className="inline-flex items-center text-sm text-blue-500 transition-colors hover:underline dark:text-blue-400"
|
||||
title={displayUrl}
|
||||
>
|
||||
<span className="truncate">{displayUrl}</span>
|
||||
|
||||
Reference in New Issue
Block a user