From 56b1e7e161c11cb7db1ef6ee2b66d6da1852ad3e Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 19 Sep 2026 16:02:44 +0200 Subject: [PATCH] fix: make settings panel scrollable (html/body height:100%), bump window size, robust load --- src/main.ts | 2 +- src/ui.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 557b65e..4c5cd5c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -527,7 +527,7 @@ export default function () { } }) - showUI({ width: 320, height: 200, themeColors: true, title: 'AI assistant (MVP)' }) + showUI({ width: 380, height: 480, themeColors: true, title: 'AI assistant (MVP)' }) // Restore persisted window placement (saved in clientStorage on the Figma file). // Default when nothing is stored: behave like the Center button (50% viewport, centered). diff --git a/src/ui.tsx b/src/ui.tsx index 91517e5..e3a0978 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -223,7 +223,10 @@ function Plugin () { const [settings, setSettings] = useState(defaultSettings()) const [loaded, setLoaded] = useState(false) useEffect(function () { - loadSettings().then(function (s) { setSettings(s); setLoaded(true) }) + loadSettings() + .then(function (s) { setSettings(s) }) + .catch(function () {}) + .finally(function () { setLoaded(true) }) }, []) const resizeRef = useRef({ active: false, dir: '', startX: 0, startY: 0, startW: 0, startH: 0, fixedAxis: 'none' as 'none' | 'x' | 'y' }) // Current dock position (for "window is edge-docked" detection in UI). Center and @@ -516,6 +519,7 @@ function Plugin () { return (
+ {/* Header — navigation bar */}