From 6be0027853d988470919ad4d248accf3c4001721 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Fri, 14 Jun 2024 22:31:39 +0800 Subject: [PATCH] fix: note editor italic (#5230) --- .../components/workflow/note-node/note-editor/theme/index.ts | 1 + .../components/workflow/note-node/note-editor/theme/theme.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/web/app/components/workflow/note-node/note-editor/theme/index.ts b/web/app/components/workflow/note-node/note-editor/theme/index.ts index 42069d2359bbdd..5cb8dec37f450a 100644 --- a/web/app/components/workflow/note-node/note-editor/theme/index.ts +++ b/web/app/components/workflow/note-node/note-editor/theme/index.ts @@ -10,6 +10,7 @@ const theme: EditorThemeClasses = { }, link: 'note-editor-theme_link', text: { + italic: 'note-editor-theme_text-italic', strikethrough: 'note-editor-theme_text-strikethrough', }, } diff --git a/web/app/components/workflow/note-node/note-editor/theme/theme.css b/web/app/components/workflow/note-node/note-editor/theme/theme.css index 8b04d85bb5a944..8c42757c30ba1b 100644 --- a/web/app/components/workflow/note-node/note-editor/theme/theme.css +++ b/web/app/components/workflow/note-node/note-editor/theme/theme.css @@ -21,4 +21,8 @@ .note-editor-theme_text-strikethrough { text-decoration: line-through; +} + +.note-editor-theme_text-italic { + font-style: italic; } \ No newline at end of file