Merge pull request 'Place pages edge to edge with no gap' (#4) from zero-gap into main

Reviewed-on: https://git.srazka.com/reudy-net/Papure/pulls/4
This commit is contained in:
reudy 2026-09-27 12:01:00 +02:00
commit cb4d3bfc79

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>();