diff --git a/src/App.svelte b/src/App.svelte
index 0c3b25b..00dfeb1 100755
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -13,6 +13,7 @@
ImportModal,
HudToolbar,
MoveStepsBar,
+ KindFilter,
PixiCanvas,
PreviewBanner,
SettingsModal,
@@ -344,6 +345,14 @@
>
+
+ {#if !readOnly && uiState.showingSolver && uiState.canSwitchBoards}
+
+ {/if}
{/if}
@@ -552,6 +561,18 @@
color: var(--text);
}
+ /* Bottom centre, where the HUD that normally carries it sits. */
+ .hidden-filter {
+ position: absolute;
+ left: 50%;
+ bottom: calc(var(--safe-bottom) + 0.75rem);
+ transform: translateX(-50%);
+ max-width: calc(100vw - var(--safe-left) - var(--safe-right) - 1.5rem);
+ z-index: var(--z-hud);
+ display: flex;
+ justify-content: center;
+ }
+
/*
* `--warn`: this page is past a limit — the deploy it was loaded from is
* gone. Nothing is destroyed, so not `--danger`.
diff --git a/src/CLAUDE.md b/src/CLAUDE.md
index fd29f06..9639f9d 100644
--- a/src/CLAUDE.md
+++ b/src/CLAUDE.md
@@ -246,10 +246,14 @@ rules still apply on top. Three things pack tighter there:
- **The header folds into the readout** on a phone with a readout to fold
into (`uiState.headerInCard`): the header is not mounted, its menu sits in
the card's head beside the chevron, and Center View and the card's own
- actions (Steps, Copy, Discard) become the menu's first rows (`actions` on
+ actions (Steps, Copy, Discard) become rows of the menu (`actions` on
`OverflowMenu`). Two stacked bars become one line. Hosted there, the menu
always takes in Share and map size, since no header holds them even on a
- landscape phone wider than `isPhone`. `TimelineStatus` goes with the header
+ landscape phone wider than `isPhone`, and it is ordered by use, each
+ action placed by its `group`: Hide interface and Center View; Steps, Copy,
+ Share and Save as image; Island stats, Import, Transfer and Settings; map
+ size; Discard alone near the foot, away from the thumb's first landing;
+ Support. `TimelineStatus` goes with the header
— the Chronon pill is the full-height screen's — and the menu closes itself
on unmount, since `overflowOpen` is one flag across both hosts. With no
readout — an empty board of one's own — the header stays, as a corner pill
diff --git a/src/lib/components/header/OverflowMenu.svelte b/src/lib/components/header/OverflowMenu.svelte
index ac8536b..f450c17 100755
--- a/src/lib/components/header/OverflowMenu.svelte
+++ b/src/lib/components/header/OverflowMenu.svelte
@@ -2,12 +2,19 @@
import type { LocateFixed } from "lucide-svelte";
/**
- * A row a host adds to the top of the menu. `onclick` returns `false` to
- * keep the menu open — a two-press confirmation that has only armed, whose
- * second press has to land on the same row.
+ * A row a host adds to the menu. `onclick` returns `false` to keep the menu
+ * open — a two-press confirmation that has only armed, whose second press
+ * has to land on the same row.
*/
export interface MenuAction {
key: string;
+ /**
+ * Where it goes in the readout's menu (`bare`): with Hide interface at
+ * the top (`view`), with Share and Save as image (`layout`), or alone
+ * near the foot (`end`), where a destructive row is not the first thing
+ * a thumb lands on. The header's menu puts every action first.
+ */
+ group: "view" | "layout" | "end";
/** Any lucide icon; they all share one component type. */
icon: typeof LocateFixed;
label: string;
@@ -45,9 +52,9 @@
*/
/*
- * Rows the host puts first. On a short phone the readout hosts this menu in
- * its head, and its own actions — Center View, Steps, Copy, Discard — come
- * in here rather than taking a line of their own.
+ * Rows the host adds. On a short phone the readout hosts this menu in its
+ * head, and its own actions — Center View, Steps, Copy, Discard — come in
+ * here rather than taking a line of their own, each placed by its `group`.
*/
let {
actions = [],
@@ -169,126 +176,54 @@
{#if uiState.overflowOpen}
+{#snippet actionRows(group?: MenuAction["group"])}
+ {#each actions.filter((a) => !group || a.group === group) as a (a.key)}
+
+ {/each}
+{/snippet}
+
+{#snippet sizeSection()}
+
+{/snippet}
+
+{#snippet shareRow()}
+
+{/snippet}
+
+
+{#snippet imageRow()}
+
+{/snippet}
+
+
+{#snippet hideRow()}
+
+{/snippet}
+
+
+{#snippet importRows()}
+ {#if showImport}
+
+
+ {/if}
+{/snippet}
+
+
+{#snippet statsRow()}
+
+{/snippet}
+
+
+{#snippet settingsRow()}
+
+{/snippet}
+