From 226e75f2c389cab4fd3bfb15b51a381e27c579f4 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 11 Sep 2026 14:21:05 +0200 Subject: [PATCH] fix: set minWidth/minHeight=0 in showUI so resize past Figma default floor --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 740bc5f..b32f018 100644 --- a/src/main.ts +++ b/src/main.ts @@ -475,7 +475,9 @@ export default function () { }) }) - showUI({ width: 320, height: 200, themeColors: true, title: 'AI assistant (MVP)' }) + // minWidth/minHeight=0 let the window shrink below Figma's default floor on resize. + // Not in the official typings for this @figma/plugin-typings version, so cast through any. + showUI({ width: 320, height: 200, minWidth: 0, minHeight: 0, themeColors: true, title: 'AI assistant (MVP)' } as any) // Restore persisted window placement (saved in clientStorage on the Figma file). // Default when nothing is stored: behave like the Center button (50% viewport, centered).