diff --git a/src/App.svelte b/src/App.svelte index cb78649..0c3b25b 100755 --- a/src/App.svelte +++ b/src/App.svelte @@ -78,6 +78,9 @@ viewportState.isCompact && uiState.sheetDetent !== "closed", ); + /* See `uiState.stepFocus` and `uiState.headerInCard`. */ + let stepFocus = $derived(uiState.stepFocus); + /* * Undo and redo from the keyboard. * @@ -275,7 +278,9 @@ instead of being the one thing left floating over a bare board. --> {#if !uiState.uiHidden} -
+ {#if !uiState.headerHidden} +
+ {/if} -
- -
+ {#if !stepFocus} +
+ +
+ {/if} {#if !readOnly && !hudHidden} -

+

+ 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. + */ + export interface MenuAction { + key: string; + /** Any lucide icon; they all share one component type. */ + icon: typeof LocateFixed; + label: string; + onclick: () => unknown; + /** Destroys something: the colour law's `--danger`. */ + danger?: boolean; + /** Armed and waiting for its second press. */ + armed?: boolean; + } + +