diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-26 23:33:28 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-26 23:33:28 -0400 |
| commit | 2acb8111d87965ad9e3c6f1e4dc214cd49bf00c4 (patch) | |
| tree | 2a663ffeb1d62d16a2dde4d2000624dbc5bdebaf /src | |
| parent | 23bbee0a9c553ae84c211f47ca870cfe14dfdfba (diff) | |
| download | decky-lsfg-vk-2acb8111d87965ad9e3c6f1e4dc214cd49bf00c4.tar.gz decky-lsfg-vk-2acb8111d87965ad9e3c6f1e4dc214cd49bf00c4.zip | |
add close button and longer modal section for config content
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/NerdStuffModal.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/NerdStuffModal.tsx b/src/components/NerdStuffModal.tsx index 104e772..b5689c9 100644 --- a/src/components/NerdStuffModal.tsx +++ b/src/components/NerdStuffModal.tsx @@ -2,7 +2,8 @@ import { useState, useEffect } from "react"; import { ModalRoot, Field, - Focusable + Focusable, + Button } from "@decky/ui"; import { getDllStats, DllStatsResult, getConfigFileContent, getLaunchScriptContent, FileContentResult } from "../api/lsfgApi"; @@ -155,8 +156,7 @@ export function NerdStuffModal({ closeModal }: NerdStuffModalProps) { borderRadius: "4px", fontSize: "0.8em", whiteSpace: "pre-wrap", - overflow: "auto", - maxHeight: "200px" + overflow: "auto" }}> {configContent.content || "No content"} </pre> @@ -165,6 +165,10 @@ export function NerdStuffModal({ closeModal }: NerdStuffModalProps) { )} </Field> )} + + <Button onClick={closeModal}> + Close + </Button> </> )} </ModalRoot> |
