feat(ui): remember detail window presentation and sort image grids

This commit is contained in:
Codex
2026-11-17 20:28:31 +03:00
parent 3473cd9ef1
commit 6bf22988c5
9 changed files with 50 additions and 11 deletions
+7
View File
@@ -617,3 +617,10 @@ ColorField screen sampling (owner direction, 2026-11-14): the shared palette inc
Floating EditorDockLayout tools honor minimumSize on restore, all eight resize edges and keyboard resize. If the available viewport is smaller, they fit that viewport; Inspector fields stack below a 330px content width instead of clipping. Tool footer is separate from the scrolling body; a Button width="full" is the canonical adaptive bottom action. The catalog's scene editor example demonstrates minimum size, a ColorField and fixed reset footer.
EditorDockLayout: every floating or actively detached tool uses context="scene" Glass V4 (shared scene tint/blur); docking removes that context and retains tiled surface/corner rules. Applies to hierarchy, layers, settings and any other editor tool. No application tint/blur overrides.
### Remembered detail windows and sortable image grids
`Window.floating/onFloatingChange` lets the host persist modal/floating mode by
window kind alongside `rect/onRectCommit`. See WINDOWS_AND_LAYERS.md.
`SortableList` and `SortableScope` accept `layout="grid"`; rectangular sorting
keeps the shared drag handle and activation threshold. The default stays vertical.
+10
View File
@@ -175,3 +175,13 @@ ColorField spectrum has no decorative perimeter stroke; retain its visible sampl
## Focus of movable headers
Window, WorkspaceWindow and EditorDockLayout share the same drag-header focus contract. A pointer grab never inherits a keyboard focus ring or filled header from the previously focused input. Headers have no perimeter outline in any theme; keyboard focus uses the canonical contrasting surface. Pointer capture, focus ownership, Arrow/Shift+Arrow movement/resizing, Enter/Space docking and Escape cancellation remain unchanged. Check both direct grabbing and input → Tab → grabbing, in docked/floating and fullscreen contexts.
## Remembered presentation
Entity/detail windows persist presentation **by window kind**, not title or entity ID.
The application stores `floating` and `rect` in its durable user preferences;
`Window` consumes `floating`/`onFloatingChange` and `rect`/`onRectCommit`.
Opening the next entity restores the same mode, position and size. Return to modal
keeps the last floating rectangle for the next detachment. Viewport fitting does
not overwrite saved geometry. Switching view/edit keeps the same mounted Window.
Confirmation dialogs remain modal (`allowFloating=false`) and never inherit it.