diff --git a/src/ui.tsx b/src/ui.tsx index c9f0f2c..cc77efc 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -10,7 +10,7 @@ import { useWindowResize } from '@create-figma-plugin/ui' import { emit } from '@create-figma-plugin/utilities' -import { h } from 'preact' +import { h, Fragment } from 'preact' import { useState } from 'preact/hooks' const MIN_WINDOW_SIZE = { width: 320, height: 200 } @@ -39,33 +39,57 @@ function Plugin () { currentWindowSize.height >= MAX_WINDOW_SIZE.height return ( - -
- + +
+ + {isMaximized ? : } + +
+
- {isMaximized ? : } - -
+ Hello, Figma ✦ + + AI assistant (MVP) — bootstrap + + + {currentWindowSize.width} × {currentWindowSize.height} + +
+
+ {/* Декоративная иконка drag-хендла в правом нижнем углу (как в старом плагине). + pointerEvents:none — сам drag ловит невидимый div от useWindowResize. */} - + ) }