mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-24 04:20:39 +00:00
update gpu-switch-mode-indicator.tsx
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user