Place pages edge to edge with no gap #4

Merged
reudy merged 1 commit from zero-gap into main 2026-09-27 12:01:01 +02:00

View file

@ -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<string, Rect> {
const rects = new Map<string, Rect>();