mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-12 12:47:42 +02:00
[eric] canvas: creating a docked app no longer yanks the camera to its stored rect; the mini card is already in the chat you're watching (ENG-352)
This commit is contained in:
@@ -384,6 +384,11 @@ export function useDashboardLifecycle({
|
||||
setTimeout(() => {
|
||||
const vc = store.getState().dashboardLayout.viewCards[outputId];
|
||||
if (!vc) return;
|
||||
// A docked app renders inside the chat the user is already watching; flying the camera to its STORED rect lands on empty canvas (ENG-352).
|
||||
if (vc.docked_to) {
|
||||
handleHighlightCard(outputId);
|
||||
return;
|
||||
}
|
||||
const rects = [{ x: vc.x, y: vc.y, width: vc.width, height: vc.height }];
|
||||
const ac = store.getState().dashboardLayout.cards[anchorSid];
|
||||
if (ac) rects.push({ x: ac.x, y: ac.y, width: ac.width, height: ac.height });
|
||||
|
||||
Reference in New Issue
Block a user