From 9b0ca9f2fcd27fb2c46af71677e250c2d35a5005 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 7 Aug 2026 16:04:42 -0700 Subject: [PATCH] [eric] canvas: double-click to frame everything keeps a readable floor instead of bottoming out at 15% --- .../Dashboard/hooks/interaction/useDashboardInteractions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts b/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts index a1600124..b4b9565d 100644 --- a/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts +++ b/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts @@ -6,6 +6,7 @@ import { isAgentDrivenBrowser } from '@/shared/isAgentDrivenBrowser'; import { expandSession } from '@/shared/state/agentsSlice'; import { bringToFront } from '@/shared/state/dashboardLayoutSlice'; import { setScrollFocusedCard } from '@/shared/cardScrollFocus'; +import { REVEAL_MIN_ZOOM } from '../../canvas/revealZoom'; import type { CardType, useDashboardSelection } from '../state/useDashboardSelection'; import type { useCanvasControls } from './useCanvasControls'; @@ -228,7 +229,9 @@ export function useDashboardInteractions({ report('dashboard', 'canvas_double_clicked'); // Double-tap on empty space = show me everything (Eric's call): the same animated fit the // overview affordances use, instead of the old blind 0.55x zoom-out that just lost people. - canvas.actions.fitToView(); + // Floored like tidy and reveal, because unfloored it clamped at MIN_ZOOM and a spread-out canvas + // landed at 15%, every card a postage stamp. That is the same "lost people" this was meant to fix. + canvas.actions.fitToView(REVEAL_MIN_ZOOM); }, [canvas.actions]); // Double-click a card → always expand + center + zoom (cancels pending collapse from single-click)