Give way in narrow windows and use one icon for each action

Phase 5-6.

- Side panes give way when the window becomes narrow: the outline
  below 1100 pixels, the side pane below 800 pixels. They come back
  when the window grows. A pane that the user opens in a narrow window
  stays open, and the saved layout keeps the wide-window choice.
- One function has one icon. The SDK icon set gets duplicate, template,
  and tab. The reveal action has one label for each platform (Show in
  Explorer, Show in Finder, Show in file manager).
- The file menu follows one order: open, clipboard, organize, show and
  copy path, history, then Delete and Delete permanently in the error
  color after a separator. The tree copies paths through a Copy path
  submenu, as the tab menu does.
- The tree uses the shared chevron. Search hits come in groups by file,
  with counts and marked matches. Bookmarks show the name, the folder,
  and a remove button.
- All boolean settings use one switch design (src/lib/ui/switch.css).
  Browser settings apply at once, and the Save button is gone. The
  Settings window opens with the focus on its search.
- Targets of at least 24 pixels: the tab close button, outline rows,
  switches, and the settings search.
- Catalog rows in French, Japanese, and Simplified Chinese.
- Docs: UI-052, ui-design.md, and the user guide.

Tests: the new layout/panesAndSettings. Tests that closed or opened
panes by hand around narrow windows now rely on the new behavior, or
wait for the panes to give way before they reopen one. Tests that read
the old menu labels or the browser Save button use the new ones.
This commit is contained in:
Knotty Wyvern
2026-10-28 21:31:36 -07:00
parent b7a9784f55
commit 0fdc991b2e
46 changed files with 590 additions and 351 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
if (item.kind === "sep") return { separator: true };
if (item.kind === "group") return { label: item.label, icon: item.icon, children: convert(item.items),
...(item.run ? { run: () => { close(true); item.run?.(); } } : {}) };
return { label: item.label, icon: item.icon, disabled: item.disabled, run: () => {
return { label: item.label, icon: item.icon, disabled: item.disabled, danger: item.danger, run: () => {
close(true);
item.run();
} };