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

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

Fixes #286.

Outside Focus the card hugged its text, so Narrow (more wrapping) made it taller and Wide shorter. The last card in lib/paper.ts now reaches the bottom of the editor pane, leaving the same margin as at its top, and grows only when the note is longer. Width now changes only the card's width; the spring still animates width only, keyboard changes stay instant. Phones (under 760px) keep the card around its text, unchanged.

Tests: new e2e in width.spec.ts (short note: Narrow and Wide cards are the same height and fill the pane; switching from the Style sheet keeps the height). Evidence is on the issue.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Fixes #286. Outside Focus the card hugged its text, so Narrow (more wrapping) made it taller and Wide shorter. The last card in `lib/paper.ts` now reaches the bottom of the editor pane, leaving the same margin as at its top, and grows only when the note is longer. Width now changes only the card's width; the spring still animates width only, keyboard changes stay instant. Phones (under 760px) keep the card around its text, unchanged. Tests: new e2e in `width.spec.ts` (short note: Narrow and Wide cards are the same height and fill the pane; switching from the Style sheet keeps the height). Evidence is on the issue. 🤖 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
kayg closed this pull request 2026-10-14 15:42:43 +00:00
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Failing after 1m2s

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!302
No description provided.