githubnext/chopinPublic

Let's compose rich plans together

Clip the research draft to its pane and return to the reader's place

A draft whose anchor is partly scrolled out no longer draws over the
document tabs. The opening reveal goes back to the scroll offset the
reader had when the draft opened if it fits there, and jumps instead of
gliding when the trip is longer than the pane. The new e2e places its
caret by clicking, since End scrolls the document on macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C5MAMaggie Appleton and Claude Opus 5.5 authored
d47f4afPatch
Parentb9f6f2f
4 files changed+122-13
StackedSplit
e2e/research-workspace.e2e.ts+26 โˆ’3
packages/editor/src/toolbar/placement.test.ts+31 โˆ’1
packages/editor/src/toolbar/placement.ts+30 โˆ’0
packages/editor/src/toolbar/research.tsx+35 โˆ’9