Wider reference search in the inline toolbar (#152) #155

Merged
miko merged 1 commit from fix/152-link-picker-width into development 2026-11-06 15:18:33 +01:00
Owner

Fixes #152.

Editor.js puts the reference tool's search in a nested popover whose width is fixed at --width: 200px. Because of that, the search's own 18rem never applied, and titles wrapped at 186px.

  • src/app/globals.css: the nested popover holding .rich-text-ref-search takes the search's width. That is min(36rem, 100vw - 2rem), so 576px on desktop and the screen's width on a phone.
  • e2e/references.spec.ts: a new test checks that the search is at least 36rem wide and fits a 390px viewport.
  • CHANGELOG entry under 1.3.0 › fixed.

Unit tests (628) and the full e2e suite (94) pass.

🤖 Generated with Claude Code

Fixes #152. Editor.js puts the reference tool's search in a nested popover whose width is fixed at `--width: 200px`. Because of that, the search's own `18rem` never applied, and titles wrapped at 186px. - `src/app/globals.css`: the nested popover holding `.rich-text-ref-search` takes the search's width. That is `min(36rem, 100vw - 2rem)`, so 576px on desktop and the screen's width on a phone. - `e2e/references.spec.ts`: a new test checks that the search is at least 36rem wide and fits a 390px viewport. - CHANGELOG entry under 1.3.0 › fixed. Unit tests (628) and the full e2e suite (94) pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Editor.js renders the reference tool's search in a nested popover fixed
at --width (200px), so the search's own 18rem never applied and titles
wrapped at 186px. The popover now takes the search's width, 36rem at
most and never wider than the viewport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miko merged commit f63faede6a into development 2026-11-06 15:18:33 +01:00
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
MassiveDynamic/kataba!155
No description provided.