feat(npcs): free rotate overlays and drop session zoom tools

Drag the top-edge handle to rotate the whole frame with the avatar; remove unused zoom controls from the session NPC window.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-21 14:22:46 +08:00
parent 1829191410
commit 0cab7ce7ca
7 changed files with 217 additions and 111 deletions
+1 -6
View File
@@ -1631,20 +1631,15 @@ export function ControlApp() {
<NpcsSceneOverlay
items={items}
editable
zoomTool={npcsOverlay?.zoomTool ?? null}
showClose
closeLabel={t('npcs.closeOverlay')}
rotateLabel={t('npcs.rotateOverlay')}
onClose={() => {
void npcsApi.dispatch({ kind: 'hide' });
}}
onLayoutChange={(npcId, layout) => {
void npcsApi.dispatch({ kind: 'layout.set', npcId, layout });
}}
onZoomAt={(npcId, nx, ny) => {
void npcsApi.dispatch(
npcId ? { kind: 'zoomAt', nx, ny, npcId } : { kind: 'zoomAt', nx, ny },
);
}}
/>
);
})()}