From 4c6939b1938f044a7511f617406e35de463c1b35 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Sat, 16 Aug 2025 12:39:32 -0400 Subject: fix styling of prof buttons --- src/components/ProfileManagement.tsx | 68 +++++++++++++++++++----------------- src/hooks/useProfileManagement.ts | 4 --- 2 files changed, 36 insertions(+), 36 deletions(-) (limited to 'src') diff --git a/src/components/ProfileManagement.tsx b/src/components/ProfileManagement.tsx index 83b5fa4..d5e5521 100644 --- a/src/components/ProfileManagement.tsx +++ b/src/components/ProfileManagement.tsx @@ -8,7 +8,7 @@ import { ConfirmModal, Field, DialogButton, - Focusable, + ButtonItem, ModalRoot, TextField } from "@decky/ui"; @@ -268,41 +268,45 @@ export function ProfileManagement({ currentProfile, onProfileChange }: ProfileMa - handleProfileChange(option.data)} - disabled={isLoading} - /> +
+ handleProfileChange(option.data)} + disabled={isLoading} + /> +
- - - New Profile - - - - Rename - - - - Delete - - + + New Profile + + + + + + Rename + + + + + + Delete +
); diff --git a/src/hooks/useProfileManagement.ts b/src/hooks/useProfileManagement.ts index bb6cd6f..4b10f0e 100644 --- a/src/hooks/useProfileManagement.ts +++ b/src/hooks/useProfileManagement.ts @@ -156,10 +156,6 @@ export function useProfileManagement() { try { const result: ConfigUpdateResult = await updateProfileConfig(profileName, config); if (result.success) { - // Only show success toast if this is the current profile - if (profileName === currentProfile) { - showSuccessToast("Configuration updated", `Updated configuration for profile: ${profileName}`); - } return result; } else { console.error("Failed to update profile config:", result.error); -- cgit v1.2.3