From 888bbb5cf207e5edbc7e212ca2d2e96d7dc2700f Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 31 Jul 2026 20:24:27 -0700 Subject: [PATCH] [eric] canvas: keep the tidy column helper file-local, nothing outside imports it --- frontend/src/shared/state/dashboardLayoutSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/shared/state/dashboardLayoutSlice.ts b/frontend/src/shared/state/dashboardLayoutSlice.ts index 85d970d1..f459634c 100644 --- a/frontend/src/shared/state/dashboardLayoutSlice.ts +++ b/frontend/src/shared/state/dashboardLayoutSlice.ts @@ -369,7 +369,7 @@ export function findOpenGridCell( // Tidy packs into the grid shape that fills the SCREEN best. The default column count is derived from // window.innerWidth, which is screen pixels pretending to be world units: it laid 8 cards out as a // 2-wide, 4-tall ribbon that the camera then had to pull back to 41% to show. -export function tidyColumnCount(itemSizes: Array<{ w: number; h: number }>): number { +function tidyColumnCount(itemSizes: Array<{ w: number; h: number }>): number { const cellW = DEFAULT_CARD_W + GRID_GAP; const cellH = DEFAULT_CARD_H + GRID_GAP; let cells = 0;