slash command adjustments including renaming to checklist

This commit is contained in:
2026-02-20 15:52:48 -06:00
parent e0cf9aa122
commit 98ff4d0a4f
4 changed files with 49 additions and 6 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ import Placeholder from "@tiptap/extension-placeholder";
import TaskList from "@tiptap/extension-task-list";
import TaskItem from "@tiptap/extension-task-item";
import Image from "@tiptap/extension-image";
import Underline from "@tiptap/extension-underline";
import { X } from "lucide-solid";
import { cn } from "@/lib/utils";
@@ -70,6 +71,7 @@ export const TaskEditor: Component<TaskEditorProps> = (props) => {
class: "rounded-lg border border-border max-w-full h-auto",
},
}),
Underline,
MobileIndent,
],
// Use untrack so the editor doesn't re-initialize when props.content changes
@@ -89,7 +91,8 @@ export const TaskEditor: Component<TaskEditorProps> = (props) => {
// Custom Task List Styling
"[&_ul[data-type='taskList']]:list-none [&_ul[data-type='taskList']]:p-0",
"[&_li[data-type='taskItem']]:flex [&_li[data-type='taskItem']]:items-start",
"[&_li[data-type='taskItem']>label]:mr-2 [&_li[data-type='taskItem']>label]:mt-0.5 [&_li[data-type='taskItem']>label]:select-none",
"[&_li[data-type='taskItem']>label]:mr-3 [&_li[data-type='taskItem']>label]:mt-1 [&_li[data-type='taskItem']>label]:select-none",
"[&_li[data-type='taskItem']>label>input]:w-5 [&_li[data-type='taskItem']>label>input]:h-5 [&_li[data-type='taskItem']>label>input]:cursor-pointer",
"[&_li[data-type='taskItem']>div]:flex-1 [&_li[data-type='taskItem']>div]:min-h-[1.5rem]",
props.class
),