From 8802eea0ba485cf94b7713bb647ec560c59e30a0 Mon Sep 17 00:00:00 2001 From: JeffJiang Date: Thu, 15 May 2025 15:18:01 +0800 Subject: [PATCH] fix: report editor styles (#163) * fix: report editor styles --- web/src/app/chat/components/research-block.tsx | 1 + web/src/components/editor/extensions.tsx | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/web/src/app/chat/components/research-block.tsx b/web/src/app/chat/components/research-block.tsx index d02d59d..52779fd 100644 --- a/web/src/app/chat/components/research-block.tsx +++ b/web/src/app/chat/components/research-block.tsx @@ -97,6 +97,7 @@ export function ResearchBlock({ className="text-gray-400" size="icon" variant="ghost" + disabled={isReplay} onClick={handleEdit} > {editing ? : } diff --git a/web/src/components/editor/extensions.tsx b/web/src/components/editor/extensions.tsx index da060d7..2cd4c9f 100644 --- a/web/src/components/editor/extensions.tsx +++ b/web/src/components/editor/extensions.tsx @@ -78,16 +78,12 @@ const taskItem = TaskItem.configure({ }); const horizontalRule = HorizontalRule.configure({ - HTMLAttributes: { - class: cx("mt-4 mb-6 border-t border-muted-foreground"), - }, + HTMLAttributes: {}, }); const starterKit = StarterKit.configure({ bulletList: { - HTMLAttributes: { - class: cx("list-disc list-outside leading-3 -mt-2"), - }, + HTMLAttributes: {}, }, orderedList: { HTMLAttributes: { @@ -95,9 +91,7 @@ const starterKit = StarterKit.configure({ }, }, listItem: { - HTMLAttributes: { - class: cx("leading-normal -mb-2"), - }, + HTMLAttributes: {}, }, blockquote: { HTMLAttributes: { @@ -107,7 +101,6 @@ const starterKit = StarterKit.configure({ codeBlock: false, code: { HTMLAttributes: { - class: cx("rounded-md bg-muted px-1.5 py-1 font-mono font-medium"), spellcheck: "false", }, },