Put the global actions in a bottom bar and the tools in the ribbon

Decision 3 correction and the owner's ribbon direction of 2026-10-28.

- One bar at the bottom of the side pane holds the workspace switcher,
  Help, and Settings, as in Obsidian. The switcher opens the workspace
  list above it. The header has no workspace button.
- While the side pane is closed, the workspace switcher, Help, and
  Settings move to the bottom of the left ribbon, so they stay
  reachable.
- New browser tab, Terminal, Plug-in views, and Commands moved from the
  header to the top of the left ribbon, so the tabs have more room.
  Their menus open at the right of the ribbon. The header keeps Save,
  the outline toggle, and the window controls. A detached tab window
  has no ribbon and keeps these tools in its header.
- Docs: decision 3 and the ribbon tools in UI-050, ui-design.md, and
  the user guide.

Tests: layout/titleBar checks the bottom bar, the ribbon fallback, and
the header buttons. workspace/openAndCreate uses the ribbon switcher in
a narrow window. tree/renameUndo reads the tools in the ribbon.
This commit is contained in:
Knotty Wyvern
2026-10-28 23:57:19 -07:00
parent eeddd880e1
commit c271e2bae1
13 changed files with 155 additions and 81 deletions
+7 -5
View File
@@ -90,7 +90,7 @@
}
let settings = $state<AppSettings>({ ...DEFAULT_SETTINGS });
let settingsReady = $state(false);
let workspaceAnchor: HTMLButtonElement | undefined = $state();
let workspaceAnchor: HTMLElement | undefined = $state();
const desktop = isTauri();
const transferredWindow = /^[0-9a-f-]{36}$/i.test(new URLSearchParams(location.search).get("tabTransfer") ?? "");
// The documents of the open workspace. Their buffers are reactive, so the tabs read them directly.
@@ -1290,9 +1290,6 @@
<WorkbenchHeader
detached={transferredWindow}
{desktop}
workspaceName={workspace?.name ?? null}
bind:workspaceAnchor
onChooseWorkspace={chooseWorkspace}
{leftOpen}
{leftView}
{sidebarNavigation}
@@ -1312,11 +1309,13 @@
onError={(message) => error = message}
/>
{#if !transferredWindow}<PluginRibbon items={ribbonNavigation} onHelp={() => preferences = "help"} onSettings={() => void openSettings()} />{/if}
{#if !transferredWindow}<PluginRibbon items={ribbonNavigation} actions={!leftOpen} bind:workspaceAnchor
canOpenBrowser={!!browserContribution?.newTab} {browserOpening} onOpenBrowser={() => void openBrowser()} {terminalEnabled} {terminalOpen} onToggleTerminal={toggleTerminal} onChooseWorkspace={chooseWorkspace} onHelp={() => preferences = "help"} onSettings={() => void openSettings()} />{/if}
{#if leftOpen && !transferredWindow}
<LeftPane
bind:fileTree
bind:workspaceAnchor
{workspace}
{session}
{leftView}
@@ -1329,6 +1328,9 @@
onSaveTemplate={(entry) => { void saveTemplate(entry); }}
onManageTemplates={() => templateManager = true}
onStatus={(message) => { status = message; error = null; }}
onChooseWorkspace={chooseWorkspace}
onHelp={() => preferences = "help"}
onSettings={() => void openSettings()}
/>
<!-- svelte-ignore a11y_no_noninteractive_tabindex, a11y_no_noninteractive_element_interactions (A focusable separator is the splitter pattern.) -->