made tiny updates

This commit is contained in:
SinachPat
2026-05-01 06:28:49 +01:00
parent 3c0c55862a
commit b9bc234d1d
5 changed files with 57 additions and 2 deletions
@@ -358,6 +358,9 @@ export function Artboard({ id, label, x, y, width, height, renderUrl, route, onR
{...(localFiberRoot !== undefined ? { fiberRoot: localFiberRoot } : {})}
width={width}
height={height}
onSelectionChange={(sel) => {
handleComponentSelected(sel?.nodeId ?? '');
}}
/>
</>
) : (
@@ -157,6 +157,7 @@ export function LiveArtboard({
if (!isReadyRef.current) return;
if (selectedComponentId) {
sendMessage('SELECT_COMPONENT', { nodeId: selectedComponentId });
sendMessage('REQUEST_ELEMENT_STYLES', { nodeId: selectedComponentId });
} else {
sendMessage('DESELECT');
}
File diff suppressed because one or more lines are too long