Width changes only the card's width: short notes fill the pane (#286) #305

Closed
kayg wants to merge 0 commits from issue/286-width-keeps-length-2 into dev
Owner

Replaces #302 (same change; the forge ignores pushes to an existing PR). Fixes #286.

Width changes only the card's width: the last card in lib/paper.ts reaches the bottom of the editor pane (same margin as at its top) and grows only when the note is longer. Phones (under 760px) are unchanged. The pane's height is now read only for Narrow and Wide cards, so Full and phones do exactly what dev does. New e2e tests in width.spec.ts. Evidence is on #286.

Note: width.spec.ts "source mode ... keeps the caret" is flaky on plain dev too in my harness (4 of 12 runs failed on chromium-1440 and chromium-390 with paper.ts reverted to dev). That test opens a Full note, where this change does nothing.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Replaces #302 (same change; the forge ignores pushes to an existing PR). Fixes #286. Width changes only the card's width: the last card in `lib/paper.ts` reaches the bottom of the editor pane (same margin as at its top) and grows only when the note is longer. Phones (under 760px) are unchanged. The pane's height is now read only for Narrow and Wide cards, so Full and phones do exactly what dev does. New e2e tests in `width.spec.ts`. Evidence is on #286. Note: `width.spec.ts` "source mode ... keeps the caret" is flaky on plain dev too in my harness (4 of 12 runs failed on chromium-1440 and chromium-390 with paper.ts reverted to dev). That test opens a Full note, where this change does nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Width changes only the card's width: a short note's card fills the pane (#286)
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Failing after 1m2s
84d604f93d
Outside Focus the card hugged its text, so Narrow wrapped taller and Wide
shorter. The last card now reaches the pane's bottom (same margin as at the
top), and grows only when the note is longer. Phones are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Paper: read the pane's height only for cards, so Full and phones do no extra layout reads (#286)
Some checks failed
CI / web (pull_request) Failing after 25s
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 1m32s
0e04cb2eba
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in merge train #329.

Landed in merge train #329.
kayg closed this pull request 2026-10-14 17:39:12 +00:00
Some checks failed
CI / web (pull_request) Failing after 25s
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 1m32s

Pull request closed

Sign in to join this conversation.
No reviewers
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
kayg/calternal!305
No description provided.