fix: drag works from first attempt + size in window header

- ui.tsx: pass min/max opts to useWindowResize (fixes first-drag bug)
- ui.tsx: move live size to top toolbar (left of expand button)
- main.ts: set figma window title with startup size via showUI({title})
This commit is contained in:
Hermes Agent committed 2026-09-09 12:50:35 +02:00
1 parent 3bff4241d6
commit 26d391f90a
2 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -10,5 +10,5 @@ export default function () {
figma.ui.resize(width, height)
})
showUI({ width: 320, height: 200, themeColors: true })
showUI({ width: 320, height: 200, themeColors: true, title: 'AI assistant (MVP) — 320×200' })
}