From 308d6fc8467080cbbf78f7b090e795485a888b9b Mon Sep 17 00:00:00 2001 From: agent Date: Sun, 27 Sep 2026 09:58:43 +0000 Subject: [PATCH] Place pages edge to edge with no gap Neighbouring pages now touch, so the tree reads like a grid. Rows with pages of different sizes are still centred, so it isn't a strict grid. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL --- src/lib/model/layout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/model/layout.ts b/src/lib/model/layout.ts index 8e8c8df..29c9290 100644 --- a/src/lib/model/layout.ts +++ b/src/lib/model/layout.ts @@ -15,7 +15,8 @@ export interface Rect { height: number; } -export const GAP = 40; +// Pages touch edge to edge; rows of mixed sizes stay centred, so it reads like a loose grid. +export const GAP = 0; export function layout(tree: Tree, sizeOf: (id: string) => Size): Map { const rects = new Map();