From cb499327066d0b50531cd854552da276d887358a Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 14 Nov 2026 23:45:03 +0300 Subject: [PATCH] fix(ui): keep editor headers and footers outside scroll overflow --- docs/WINDOWS_AND_LAYERS.md | 2 ++ packages/ui-core/styles.css | 4 ++-- packages/ui-react/src/RangeControl.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/WINDOWS_AND_LAYERS.md b/docs/WINDOWS_AND_LAYERS.md index ed6b37b..12e31f6 100644 --- a/docs/WINDOWS_AND_LAYERS.md +++ b/docs/WINDOWS_AND_LAYERS.md @@ -167,3 +167,5 @@ Dock tool headings inherit the focused drag-header foreground, including title a Keyboard-focused dock headers keep their action/close glyphs on the inherited contrast color, as well as title/subtitle. Tool minimumSize governs floating and docked geometry alike, including restored JSON, pointer and keyboard resize. Screen bounds take priority when smaller. Put fixed bottom actions in EditorDockTool.footer; never append them to scrollable inspector content. + +The primary scene owns an isolated stacking context so its toolbars stay behind floating tools. A tool outer shell clips without scrolling; only its body scrolls, keeping header/footer fixed even when a field receives focus. diff --git a/packages/ui-core/styles.css b/packages/ui-core/styles.css index d07eb40..1306eee 100644 --- a/packages/ui-core/styles.css +++ b/packages/ui-core/styles.css @@ -4545,7 +4545,7 @@ textarea.nodedc-field__control { .nodedc-editor-workspace__body {position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;} .nodedc-editor-dock {position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;isolation:isolate;} .nodedc-editor-dock__canvas {position:relative;width:100%;height:100%;} -.nodedc-editor-dock__primary {position:absolute;overflow:hidden;min-width:0;min-height:0;} +.nodedc-editor-dock__primary {position:absolute;isolation:isolate;overflow:hidden;min-width:0;min-height:0;} .nodedc-editor-dock__tool {position:absolute;display:flex;flex-direction:column;box-sizing:border-box;min-width:0;min-height:0;} .nodedc-editor-dock__tool[hidden] {display:none;} .nodedc-editor-dock__tool:not([data-floating]) {border-radius:0;box-shadow:none;} @@ -4765,4 +4765,4 @@ textarea.nodedc-field__control { @container nodedc-inspector (max-width: 329px) { .nodedc-control-row { grid-template-columns: minmax(0, 1fr); gap: var(--nodedc-space-2); } } -.nodedc-color-field__native-picker { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } +.nodedc-editor-dock__tool.nodedc-glass-material { overflow: clip; } diff --git a/packages/ui-react/src/RangeControl.tsx b/packages/ui-react/src/RangeControl.tsx index 0599f1e..9816857 100644 --- a/packages/ui-react/src/RangeControl.tsx +++ b/packages/ui-react/src/RangeControl.tsx @@ -400,7 +400,7 @@ export function ColorField({ value, onChange, label = "Цвет", className, dis - { setDraft(event.target.value); onChange(event.target.value); }}/> + { setDraft(event.target.value); onChange(event.target.value); }}/>