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"
size="icon"
variant="ghost"
disabled={isReplay}
onClick={handleEdit}
>
{editing ? <Undo2 /> : <Pencil />}

View File

@ -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",
},
},