fix(ui): keep editor headers and footers outside scroll overflow

This commit is contained in:
Codex
2026-11-14 23:45:03 +03:00
parent 5f93defabf
commit cb49932706
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -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. 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. 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.
+2 -2
View File
@@ -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-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 {position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;isolation:isolate;}
.nodedc-editor-dock__canvas {position:relative;width:100%;height:100%;} .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 {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[hidden] {display:none;}
.nodedc-editor-dock__tool:not([data-floating]) {border-radius:0;box-shadow: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) { @container nodedc-inspector (max-width: 329px) {
.nodedc-control-row { grid-template-columns: minmax(0, 1fr); gap: var(--nodedc-space-2); } .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; }
+1 -1
View File
@@ -400,7 +400,7 @@ export function ColorField({ value, onChange, label = "Цвет", className, dis
</div> </div>
</div> </div>
</Dropdown> </Dropdown>
<input ref={nativePicker} type="color" className="nodedc-color-field__native-picker" tabIndex={-1} aria-hidden="true" disabled={disabled} value={validColor ? hsvToHex(validColor) : '#000000'} onChange={event => { setDraft(event.target.value); onChange(event.target.value); }}/> <input ref={nativePicker} type="color" hidden tabIndex={-1} aria-hidden="true" disabled={disabled} value={validColor ? hsvToHex(validColor) : '#000000'} onChange={event => { setDraft(event.target.value); onChange(event.target.value); }}/>
<input <input
className="nodedc-color-field__text" className="nodedc-color-field__text"
{...props} {...props}