fix: report editor styles (#163)

* fix: report editor styles
This commit is contained in:
JeffJiang 2025-05-15 15:18:01 +08:00 committed by GitHub
parent 1a59accb52
commit 8802eea0ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

View File

@ -97,6 +97,7 @@ export function ResearchBlock({
className="text-gray-400" className="text-gray-400"
size="icon" size="icon"
variant="ghost" variant="ghost"
disabled={isReplay}
onClick={handleEdit} onClick={handleEdit}
> >
{editing ? <Undo2 /> : <Pencil />} {editing ? <Undo2 /> : <Pencil />}

View File

@ -78,16 +78,12 @@ const taskItem = TaskItem.configure({
}); });
const horizontalRule = HorizontalRule.configure({ const horizontalRule = HorizontalRule.configure({
HTMLAttributes: { HTMLAttributes: {},
class: cx("mt-4 mb-6 border-t border-muted-foreground"),
},
}); });
const starterKit = StarterKit.configure({ const starterKit = StarterKit.configure({
bulletList: { bulletList: {
HTMLAttributes: { HTMLAttributes: {},
class: cx("list-disc list-outside leading-3 -mt-2"),
},
}, },
orderedList: { orderedList: {
HTMLAttributes: { HTMLAttributes: {
@ -95,9 +91,7 @@ const starterKit = StarterKit.configure({
}, },
}, },
listItem: { listItem: {
HTMLAttributes: { HTMLAttributes: {},
class: cx("leading-normal -mb-2"),
},
}, },
blockquote: { blockquote: {
HTMLAttributes: { HTMLAttributes: {
@ -107,7 +101,6 @@ const starterKit = StarterKit.configure({
codeBlock: false, codeBlock: false,
code: { code: {
HTMLAttributes: { HTMLAttributes: {
class: cx("rounded-md bg-muted px-1.5 py-1 font-mono font-medium"),
spellcheck: "false", spellcheck: "false",
}, },
}, },