update gpu-switch-mode-indicator.tsx

This commit is contained in:
MacRimi
2026-04-09 15:29:41 +02:00
parent af63b71ab8
commit 3cede88a3d
2 changed files with 333 additions and 331 deletions
+9 -9
View File
@@ -879,9 +879,9 @@ export default function Hardware() {
<span className="text-xs font-medium text-muted-foreground uppercase tracking-wide">
Switch Mode
</span>
<div className="flex items-center gap-1">
<div className="flex items-center gap-2">
{editingSwitchModeGpu === fullSlot ? (
<>
<div className="flex items-center gap-1">
<Button
variant="ghost"
size="sm"
@@ -889,7 +889,7 @@ export default function Hardware() {
onClick={(e) => handleSwitchModeSave(fullSlot, e)}
title="Save changes"
>
<Check className="h-3.5 w-3.5" />
<Check className="h-4 w-4" />
</Button>
<Button
variant="ghost"
@@ -898,18 +898,18 @@ export default function Hardware() {
onClick={(e) => handleSwitchModeCancel(fullSlot, e)}
title="Cancel"
>
<X className="h-3.5 w-3.5" />
<X className="h-4 w-4" />
</Button>
</>
</div>
) : (
<Button
variant="ghost"
variant="outline"
size="sm"
className="h-6 w-6 p-0 text-muted-foreground hover:text-foreground"
className="h-7 px-2 text-xs flex items-center gap-1"
onClick={(e) => handleSwitchModeEdit(fullSlot, e)}
title="Edit switch mode"
>
<Pencil className="h-3.5 w-3.5" />
<Pencil className="h-3 w-3" />
Edit
</Button>
)}
</div>