fix(ui): keep tree information menus within viewport bounds

This commit is contained in:
Codex
2026-11-14 22:01:43 +03:00
parent 6f2f9644fe
commit 31ed774529
5 changed files with 12 additions and 2 deletions
+2
View File
@@ -570,3 +570,5 @@ The shared theme supports `edges: "flat"` for borderless surfaces, including por
`renderPathBar(target, items, {icon, onNavigate})` — компактная строка пути в стиле Finder: нейтральные иконки папок, текст и разделители `›`, без pill-кнопок. Подключается `@nodedc/ui-dom/styles.css`. Папки — клавиатурно доступные кнопки; конечный файл — текст с `aria-current`. Длинный путь прокручивается по горизонтали. Consumer передаёт пути и существующий Icon, хранение и навигация остаются в приложении. Живой пример: «Размер DOM-окна».
Toolbar `menuWidth` controls inspector menu width (default 220 px, bounded 180–600 px); Dropdown retains viewport clamping. Tree `renderActions(node)` supports per-item information menus without duplicating the outliner. `defaultExpandedDepth` limits initial expansion; selecting an item still reveals and scrolls to its ancestors. BIM uses canonical `ruler` (Ruler), `section` (Slice), and `isolate` (Focus) glyphs.
Open Dropdown surfaces observe content size changes and recompute their viewport bounds, including asynchronous property/volume results. Hover/focus information triggers use `show` for pointer/keyboard activation; click must not immediately toggle a just-focused menu closed.