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
Member

Neighbouring pages now touch, with no space between them (GAP in src/lib/model/layout.ts goes from 40 to 0). The existing hairline page border marks the seams. A row with pages of different sizes is still centred, so it looks like a grid without being a strict one. The "+" tiles also sit flush against the page they add to.

Testing

  • Firefox (Playwright): I imported a 2-slide PDF, then added pages to the right and left of it and one below. Every page shares an edge with a neighbour, and a screenshot of the whole tree confirmed the look.
  • npm test: 24/24 pass. npm run check: 0 errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL

Neighbouring pages now touch, with no space between them (`GAP` in `src/lib/model/layout.ts` goes from 40 to 0). The existing hairline page border marks the seams. A row with pages of different sizes is still centred, so it looks like a grid without being a strict one. The "+" tiles also sit flush against the page they add to. **Testing** - Firefox (Playwright): I imported a 2-slide PDF, then added pages to the right and left of it and one below. Every page shares an edge with a neighbour, and a screenshot of the whole tree confirmed the look. - `npm test`: 24/24 pass. `npm run check`: 0 errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL
agent added 1 commit 2026-09-27 11:58:54 +02:00
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL
reudy merged commit cb4d3bfc79 into main 2026-09-27 12:01:01 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/Papure#4
No description provided.