PlotDirector/Docs/Codex/WorkspaceDividers.md

10 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Workspace dividers
`workspace-surface.js` owns editor and management-panel resizing. `PlotDirectorWorkspaceSurface.split(root, options)` uses the same pointer capture, keyboard interaction, `.pd-panel-divider` styling and `plotdirector.workspace.panels.*` local preferences as the existing Maps, Relationships and Floor Plans panels. Its returned `dispose()` disconnects observers/listeners. Context's separate split-pane lifecycle is unchanged.
Main Characters uses `characters.<user>` (224–480px, 256px default, at least 320px for cards). Main Names uses `names.<user>` (at least 280px results, 320px details, initial existing 1:0.8 proportions). The preference stores the author's chosen pixel width; window/container changes constrain only the displayed width and never save a temporary clamp. Keys are independent and persist across visits, refresh and installed-PWA restart in the same browser profile. They do not synchronise devices.
Drag the visible gutter, use Left/Right (10px), Shift+Left/Right (40px), or Home/double-click to reset. Separators expose orientation, label and current/minimum/maximum width. Pointer capture and resize cursor/text-selection protection end on pointer up/cancel/lost capture. The handle does not accept HTML drag sources or intercept card/attribute drag targets.
Characters retains its collapsed and narrow stacked modes, sticky sidebar and independent sidebar scrolling. Names retains its existing container breakpoint and narrow details/Back mode. Only main Names mounts this divider; Context does not. Resizing changes grid sizing only, without search, textual/AI requests, state reset or shared-focus changes. No database migration or new preference service is involved.