From a08975533767aed52f517e1f67a2496531fed96b Mon Sep 17 00:00:00 2001 From: callumalpass Date: Tue, 11 Aug 2026 18:31:24 +1000 Subject: [PATCH] Keep editor header actions reachable --- apps/editor/src/NoteList.tsx | 2 +- apps/editor/src/TypeBrowser.tsx | 5 ++-- apps/editor/src/styles.css | 16 ++++++++-- apps/editor/tests/editor.spec.ts | 50 ++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 6 deletions(-) diff --git a/apps/editor/src/NoteList.tsx b/apps/editor/src/NoteList.tsx index ae0ed609..61dcd936 100644 --- a/apps/editor/src/NoteList.tsx +++ b/apps/editor/src/NoteList.tsx @@ -66,7 +66,7 @@ export function NoteList({ entries, noteCount, fileCount, types, selectedPath, s const virtualizer = useVirtualizer({ count: entries.length, getScrollElement: () => scrollRef.current, estimateSize: () => 76, overscan: 8 }); const typeIcons = useMemo(() => new Map(types.map((type) => [type.name, collectionTypeIcon(type)])), [types]); return
-
{leadingActions}

{collectionName}

{browserCountLabel(noteCount, fileCount, entries.length, loading, structureLoading, filesLoading, contentIndexing, contentLoaded, total, contentTotal, Boolean(search.trim()), sort)}{contentError && }{fileError && }

{trailingActions}
+
{leadingActions}

{collectionName}

{browserCountLabel(noteCount, fileCount, entries.length, loading, structureLoading, filesLoading, contentIndexing, contentLoaded, total, contentTotal, Boolean(search.trim()), sort)}{contentError && }{fileError && }

{trailingActions}
diff --git a/apps/editor/src/TypeBrowser.tsx b/apps/editor/src/TypeBrowser.tsx index a7894fe0..4d527d1c 100644 --- a/apps/editor/src/TypeBrowser.tsx +++ b/apps/editor/src/TypeBrowser.tsx @@ -113,9 +113,8 @@ export function TypeList({ types, selectedName, packsSelected = false, leadingAc
{leadingActions} -

Types

{types.length} {types.length === 1 ? "definition" : "definitions"}

- {trailingActions} - +

Types

{types.length} {types.length === 1 ? "definition" : "definitions"}

+
{trailingActions}