From 194eb12b3efc65ee48449bade8df9872a99b1215 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Mon, 20 Oct 2025 13:05:47 -0400 Subject: chore: make barrel imports and refs consistent --- src/components/FlatpaksModal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components/FlatpaksModal.tsx') diff --git a/src/components/FlatpaksModal.tsx b/src/components/FlatpaksModal.tsx index ae0c333..ca15a25 100644 --- a/src/components/FlatpaksModal.tsx +++ b/src/components/FlatpaksModal.tsx @@ -32,7 +32,7 @@ interface FlatpaksModalProps { closeModal?: () => void; } -const FlatpaksModal: FC = ({ closeModal }) => { +export const FlatpaksModal: FC = ({ closeModal }) => { const [extensionStatus, setExtensionStatus] = useState(null); const [flatpakApps, setFlatpakApps] = useState(null); const [loading, setLoading] = useState(true); @@ -419,5 +419,3 @@ const FlatpaksModal: FC = ({ closeModal }) => { ); }; - -export default FlatpaksModal; -- cgit v1.2.3 From 299eab282315e7b2c05c5af0cf9eb9d7171e69ca Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Mon, 20 Oct 2025 13:24:15 -0400 Subject: fix: make each flatpak step focusable for controller scroll --- src/components/FlatpaksModal.tsx | 147 +++++++++++++++++++++------------------ 1 file changed, 79 insertions(+), 68 deletions(-) (limited to 'src/components/FlatpaksModal.tsx') diff --git a/src/components/FlatpaksModal.tsx b/src/components/FlatpaksModal.tsx index ca15a25..ca69ec6 100644 --- a/src/components/FlatpaksModal.tsx +++ b/src/components/FlatpaksModal.tsx @@ -1,4 +1,4 @@ -import { FC, useState, useEffect } from 'react'; +import { FC, useState, useEffect, CSSProperties } from 'react'; import { ModalRoot, DialogBody, @@ -126,6 +126,40 @@ export const FlatpaksModal: FC = ({ closeModal }) => { ); } + const instructionSteps = [ + { + id: 'try-first', + title: 'Try first:', + command: '~/lsfg' + }, + { + id: 'try-full-path', + title: "If that doesn't work, try full path:", + command: '/home/(username)/lsfg' + }, + { + id: 'final-result', + title: 'Final result should look like:', + command: '~/lsfg "usr/bin/flatpak"' + } + ]; + + const focusableInstructionStyle: CSSProperties = { + padding: '10px', + background: 'rgba(0, 0, 0, 0.3)', + borderRadius: '6px', + marginBottom: '12px' + }; + + const commandStyle: CSSProperties = { + fontFamily: 'monospace', + fontSize: '0.85em', + background: 'rgba(0, 0, 0, 0.45)', + padding: '8px', + borderRadius: '4px', + marginTop: '6px' + }; + return ( Flatpak Extensions @@ -327,80 +361,57 @@ export const FlatpaksModal: FC = ({ closeModal }) => { {/* Steam Configuration Instructions */} Steam Configuration - - -
-
- Configure Steam Flatpak Shortcuts -
-
- In Steam, open your flatpak game and click the cog wheel." -
-
- IMPORTANT: Set this in TARGET (NOT LAUNCH OPTIONS) -
- -
- Try first: -
-
- ~/lsfg -
- -
- If that doesn't work, try full path: -
-
- /home/(username)/lsfg -
- -
- Final result should look like: -
-
- ~/lsfg "usr/bin/flatpak" -
- - {/* Visual example image */} -
- +
+ Configure Steam Flatpak Shortcuts +
+
+ In Steam, open your flatpak game and click the cog wheel. +
+
+ IMPORTANT: Set this in TARGET (NOT LAUNCH OPTIONS) +
+ + {instructionSteps.map((step) => ( + {}} + style={focusableInstructionStyle} + > +
{step.title}
+
{step.command}
+
+ ))} + + {}} + style={{ marginTop: '4px' }} + > +
+ Steam Properties Target Field Example
-
- + +
{/* Close Button */} -- cgit v1.2.3