From abbdb993d56d7191fda82ee5dccfd2727bb669aa Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Fri, 13 Mar 2026 16:11:57 -0500 Subject: [PATCH] Tabe controls stable --- src/components/TableBubbleMenu.tsx | 12 +++---- src/components/TaskDetail.tsx | 6 ++-- src/components/TaskEditor.tsx | 56 ++++++++++++++++-------------- src/views/NotepadView.tsx | 2 +- 4 files changed, 39 insertions(+), 37 deletions(-) diff --git a/src/components/TableBubbleMenu.tsx b/src/components/TableBubbleMenu.tsx index 07af558..3e0cad7 100644 --- a/src/components/TableBubbleMenu.tsx +++ b/src/components/TableBubbleMenu.tsx @@ -1,7 +1,7 @@ import { type Component, createSignal, createEffect, For } from "solid-js"; -import { - Trash2, - Type +import { + Trash2, + Type } from "lucide-solid"; import { cn } from "@/lib/utils"; import type { Editor } from "@tiptap/core"; @@ -132,10 +132,10 @@ export const TableBubbleMenu: Component = (props) => { ]; return ( -
{ e.preventDefault(); diff --git a/src/components/TaskDetail.tsx b/src/components/TaskDetail.tsx index 9f92978..c227647 100644 --- a/src/components/TaskDetail.tsx +++ b/src/components/TaskDetail.tsx @@ -233,10 +233,10 @@ export const TaskDetail: Component = (props) => { e.preventDefault(); } }} - class="w-full sm:max-w-2xl px-0 sm:px-0 flex flex-col h-full bg-background border-l border-border shadow-2xl" + class="w-full sm:max-w-2xl p-0 gap-0 flex flex-col h-full bg-background border-l border-border shadow-2xl" > {/* Header Area */} -
+
@@ -496,7 +496,7 @@ export const TaskDetail: Component = (props) => {
{/* Content Area */} -
+
}> = (props) => { // Handle full screen images as before return ( -
-
{ - const e = editor(); - if (!e) return; - e.chain().insertContentAt(0, '

').focus('start').run(); - }} - title="Add empty line at the top" - > - - Click to insert newline above - -
+
{(e) => } -
{ - const target = e.target as HTMLElement; - if (target.tagName.toLowerCase() === 'img') { - setFullscreenImage((target as HTMLImageElement).src); - } else if (e.target === editorRef) { - // Focus end if clicking on padding below content - editor()?.chain().focus().run(); - } - }} - /> +
+
{ + const e = editor(); + if (!e) return; + e.chain().insertContentAt(0, '

').focus('start').run(); + }} + title="Add empty line at the top" + > + + Click to insert newline above + +
+
{ + const target = e.target as HTMLElement; + if (target.tagName.toLowerCase() === 'img') { + setFullscreenImage((target as HTMLImageElement).src); + } else if (e.target === editorRef) { + // Focus end if clicking on padding below content + editor()?.chain().focus().run(); + } + }} + /> +
{/* Note Preview Popover */} n.id === previewNote()!.noteId)}> diff --git a/src/views/NotepadView.tsx b/src/views/NotepadView.tsx index 3180b4a..e3a9c19 100644 --- a/src/views/NotepadView.tsx +++ b/src/views/NotepadView.tsx @@ -567,7 +567,7 @@ export const NotepadView: Component<{ {/* Editor Instance */}