diff --git a/src/views/NotepadView.tsx b/src/views/NotepadView.tsx index 603f3f7..ced99c6 100644 --- a/src/views/NotepadView.tsx +++ b/src/views/NotepadView.tsx @@ -2,8 +2,9 @@ import { type Component, createSignal, createMemo, createEffect, onCleanup, For, import { store, renameTagDefinition, updateNote, removeNote, restoreNote, setActiveNoteId, cleanupNoteAttachments, getFavoriteTag } from "@/store"; import { pb } from "@/lib/pocketbase"; import { type Note } from "@/store"; -import { Trash2, Lock, Unlock, Search, Link, X, ChevronRight, ChevronDown, FileText, Plus, Star } from "lucide-solid"; +import { Trash2, Lock, Unlock, Search, Link, X, ChevronRight, ChevronDown, FileText, Plus, Star, MoreHorizontal } from "lucide-solid"; import { Button } from "@/components/ui/button"; +import { Popover, PopoverTrigger, PopoverContent } from "@/components/ui/popover"; import { DragDropProvider, DragDropSensors, SortableProvider, createSortable, closestCenter } from "@thisbeyond/solid-dnd"; import { cn } from "@/lib/utils"; import { NOTES_COLLECTION } from "@/lib/constants"; @@ -382,7 +383,7 @@ export const NotepadView: Component<{ {/* Editor Area Container */} -
+
{/* Editor Area */}
@@ -421,89 +422,7 @@ export const NotepadView: Component<{
- {/* Mobile Tabs Dropdown */} -
- -
- - - -
-
- - - -
+ {/* Mobile Tabs Dropdown Moved to Footer */}
{/* Sticky Footer Actions (Match TaskDetail style) */} -
- {/* Delete button (persistent for owner) */} - - - +
+
+ {/* "..." popover menu containing Public/Private toggle and Delete */} + + + + + + +
+ + +
+
+
+
+
- - {/* Close button (Mobile only) */} - - + {/* Tab dropdown moved to middle */} +
+ + + + + Tabs ({childTabs().length + (rootParentNote() ? 1 : 0)}) + + + +
+ + {(root) => ( + + )} + + + {(tab) => ( + + )} + + +
+
+
+
+ + + +
+ +
+ + {/* Close button (Mobile only) */} + + +
);