* feat(web): let the reading companion claim half the window with a focus preset
The companion column was drag-resizable only within a hard 640px cap, which
left readers with a narrow chat pane on wide monitors; leaving immersive
reading for the full chat loses the viewport-grounded context, so widening
the pane in place is the better escape hatch.
- Raise the drag ceiling to half the window width (the reader track keeps
its minmax(360px,1fr) floor; the stored-width validator follows).
- Add a focus preset next to the panel toggles: one click collapses the
contents navigator and sets the companion to half the window; exiting
restores the previous width and navigator state. Ephemeral like the
navigator collapse state - only the width persists.
- Hide the preset on narrow screens where the companion renders as a sheet.
* feat(web): fully resizable reading workspace panels
Extend the reading workspace from a companion-only drag handle to fully
user-sized panels:
- The contents navigator gains its own drag divider (184-400px, persisted
in dt.reader.navigatorWidth) instead of a fixed 184-230px track.
- The companion's ceiling is now the reader's minimum width, not half the
window: with the navigator collapsed the companion can claim all but
360px, so readers on wide monitors can make the chat pane as large as
the layout physically allows.
- The grid renders both dividers as dedicated 5px tracks so each handle
owns one column and auto-placement lines the panels up.
- A persisted width that no longer fits (window moved to a smaller screen)
is clamped at render time so the reader never drops below its floor.
* fix(web): measure the reading grid, not the window, for panel ceilings
The app sidebar sits outside the reading grid, so innerWidth overstates
the space the panels share and a companion dragged past the container
overflowed off-screen. Track the grid container with a ResizeObserver and
derive the companion ceiling (drag-time and render-time) plus the focus
preset from the measured frame, accounting for the divider tracks.
* Adapt reading panel resize and focus to current workspace layout
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>