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:
@@ -965,3 +965,18 @@ Native shell, background image, and desktop acceptance remain open.
|
||||
- Evidence: `tests/smoke/layout/keyboardFocus.smoke.mjs`.
|
||||
- Replaces / replaced by: The radio rule of [UI-003](#ui-003--quiet-menu-choices). Other parts of UI-003 remain.
|
||||
- Limits: The check mark replaces the icon of a radio row. The list of all tabs names pinned tabs in text. Browser checks use desktop service mocks.
|
||||
|
||||
### UI-052 — Panes that give way, one icon per action, and consistent Settings
|
||||
|
||||
- Type: Rule change
|
||||
- Date: 2026-10-28
|
||||
- Status: Implemented for user review
|
||||
- Decision source: Owner decisions 6 (menu separator and danger color) and 13 (layout and icons, Settings) of 2026-10-27 (interface review issues 9, 11, 13, 19, and 21), stage 5-6.
|
||||
- Previous rule: Side panes kept 260 and 240 pixels in every window, so a 900-pixel window gave the document 44% of its width. The copy icon stood for 7 functions, and one action had two labels ("Show in Explorer" and "Show in system explorer"). Delete sat after Rename with no separator or color. The tree used CSS triangles. Search showed a flat list of paths. Bookmarks were bare paths. Settings had three switch designs, a Save button only for the browser, and the first focus on "Minimize window". Some targets were 22 pixels.
|
||||
- New rule: The outline gives way below 1100 pixels and the side pane below 800 pixels, when the window becomes narrow. They come back when it grows, and a pane that the user opens in a narrow window stays open. One function has one icon (`copy`, `duplicate`, `template`, and `tab`, added to the SDK icon set), and the reveal action has one label for each platform. The file menu follows one order and ends with Delete in the error color after a separator. 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 the `rs-switch` design, every setting applies at once, and the Settings window opens with the focus on its search. The tab close button, outline rows, switches, and the settings search are at least 24 pixels.
|
||||
- Reason: A narrow window must leave room for the document. A user must recognize an action by its icon and its label. Settings must behave the same on every page.
|
||||
- Scope: The workbench layout, the file and tab menus, the image and table menus, the left pane views, the outline, and Settings.
|
||||
- Shared implementation: `Workbench.svelte` (the narrow layout), `FileTree.svelte`, `menuTypes.ts` and `actionMenu.ts` (`danger`), `menuItems.ts` (`revealLabel`), `packages/plugin-sdk/src/icons.ts`, `SearchPane.svelte`, `BookmarksPane.svelte`, `TreeNode.svelte`, and `src/lib/ui/switch.css`.
|
||||
- Evidence: `tests/smoke/layout/panesAndSettings.smoke.mjs`.
|
||||
- Replaces / replaced by: The fixed side panes of narrow windows, and the Save button of the browser settings.
|
||||
- Limits: At startup, the saved layout applies as it is, also in a narrow window. Panes give way only when the window becomes narrower. Browser checks use desktop service mocks. The SDK release that publishes the new icon names is a separate step.
|
||||
|
||||
Reference in New Issue
Block a user