fix: set minWidth/minHeight=0 in showUI so resize past Figma default floor

This commit is contained in:
Hermes Agent committed 2026-09-11 14:21:05 +02:00
1 parent 110e686a8c
commit 226e75f2c3
1 file changed
+3 -1
+3 -1
View File
@@ -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).