- Task Documents right pane gains in-place editing with the shared CodeMirror
FileEditor (Save via PUT /tasks/:id/documents/:key); task documents now
render markdown by default.
- Project Files pane is editable the same way via the project workspace file
API, replacing the Read-only badge contract.
- Fix "Add comment" doing nothing again: `.selection-comment-trigger:active`
tied the global `.btn:active` at (0,2,0) and lost to a bundle-order flip,
teleporting the trigger mid-press so click never fired. `:active` rules now
use `.btn.selection-comment-trigger` (0,3,0); regression test asserts the
prefix so a plain-selector revert fails.
- Align the task-document header: path box and Plain/Edit (Cancel/Save)
actions share one row, meta line sits below.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The panel carries the shared .card class, and '.card { position: relative }'
loads after the popover stylesheet, so equal specificity let bundle order
strip the panel's position: fixed — it then flowed inside the documents
viewer and rendered clipped at the bottom-right of the viewport, far from
the selection. A .selection-comment-panel.card rule restores fixed
positioning immune to order; the panel's left is now a width-aware clamp
(no half-offscreen composer near viewport edges), top is clamped near the
bottom, and the textarea focuses with preventScroll so opening the
composer no longer scrolls the selected content out of view.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The global .btn:active press-feedback transform (scale 0.97) overrode
the selection-comment trigger's positioning translate, teleporting the
fixed-position button mid-press so the click never landed and the
composer silently never opened. The :active state now restates the
translate alongside the scale on desktop and mobile offsets. Document
previews also gain a subtle Read-only badge explaining select-to-comment.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>