summaryrefslogtreecommitdiff
path: root/src/components/ProfileManagement.tsx
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-10-20 12:21:02 -0400
committerGitHub <noreply@github.com>2025-10-20 12:21:02 -0400
commit76c1ec79a3343c356298bad383845cade214061d (patch)
treee9895aa7f298928a04ce863b6dcb8b94a1fa67a3 /src/components/ProfileManagement.tsx
parent22fd2c9fdd26250fff22a4c1f810eeb8cc4c941d (diff)
parenta7f7d5878a037fd59fb3257daf9d5e22c63ef9e8 (diff)
downloaddecky-lsfg-vk-76c1ec79a3343c356298bad383845cade214061d.tar.gz
decky-lsfg-vk-76c1ec79a3343c356298bad383845cade214061d.zip
Merge pull request #188 from xXJSONDeruloXx/pancake-cleanup
Pancake cleanup
Diffstat (limited to 'src/components/ProfileManagement.tsx')
-rw-r--r--src/components/ProfileManagement.tsx62
1 files changed, 45 insertions, 17 deletions
diff --git a/src/components/ProfileManagement.tsx b/src/components/ProfileManagement.tsx
index 6e2a8f8..d3d15a9 100644
--- a/src/components/ProfileManagement.tsx
+++ b/src/components/ProfileManagement.tsx
@@ -14,7 +14,7 @@ import {
AppOverview,
Router
} from "@decky/ui";
-import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri";
+import { RiArrowDownSFill, RiArrowUpSFill, RiEditLine, RiDeleteBinLine } from "react-icons/ri";
import {
getProfiles,
createProfile,
@@ -405,6 +405,7 @@ export function ProfileManagement({ currentProfile, onProfileChange }: ProfileMa
label=""
childrenLayout="below"
childrenContainerWidth="max"
+ bottomSeparator="none"
>
<Dropdown
rgOptions={profileOptions}
@@ -416,23 +417,50 @@ export function ProfileManagement({ currentProfile, onProfileChange }: ProfileMa
</PanelSectionRow>
<PanelSectionRow>
- <ButtonItem
- layout="below"
- onClick={handleRenameProfile}
- disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp}
+ <Focusable
+ style={{
+ display: "flex",
+ alignItems: "center",
+ gap: "8px",
+ width: "100%",
+ padding: "0",
+ margin: "0",
+ marginTop: "8px"
+ }}
+ flow-children="horizontal"
>
- Rename
- </ButtonItem>
- </PanelSectionRow>
-
- <PanelSectionRow>
- <ButtonItem
- layout="below"
- onClick={handleDeleteProfile}
- disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp}
- >
- Delete
- </ButtonItem>
+ <DialogButton
+ style={{
+ height: "40px",
+ flex: 1,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: "10px",
+ minWidth: "0",
+ }}
+ onClick={handleRenameProfile}
+ disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp}
+ >
+ <RiEditLine size={20} />
+ </DialogButton>
+
+ <DialogButton
+ style={{
+ height: "40px",
+ flex: 1,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: "10px",
+ minWidth: "0",
+ }}
+ onClick={handleDeleteProfile}
+ disabled={isLoading || selectedProfile === "decky-lsfg-vk" || !!mainRunningApp}
+ >
+ <RiDeleteBinLine size={20} />
+ </DialogButton>
+ </Focusable>
</PanelSectionRow>
</>
)}