From e60ce7123de20b96f20cb8ca6dc2fbd1cda596f7 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Tue, 29 Sep 2026 21:17:39 +0800 Subject: [PATCH] fix(web): use a heading icon for paragraph style The palette glyph collapsed into a speech bubble at 16px. Rich text uses a heading mark, and Markdown source themes use a brush. --- apps/web/src/components/EditorToolbar.tsx | 30 ++++++++++++++--------- apps/web/src/lib/markdown-theme.test.mjs | 2 ++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/apps/web/src/components/EditorToolbar.tsx b/apps/web/src/components/EditorToolbar.tsx index 9b34d971..260d4bef 100644 --- a/apps/web/src/components/EditorToolbar.tsx +++ b/apps/web/src/components/EditorToolbar.tsx @@ -23,7 +23,8 @@ import { ChevronUp, FileCode2, FileText, - Palette, + Heading, + Paintbrush, } from "lucide-react"; import { cn } from "@/lib/utils"; import { MEMO_EDITOR_TOOLBAR_COLLAPSED_CLASS_NAME } from "@/components/MemoEditorChromeDensity"; @@ -416,16 +417,23 @@ export const EditorToolbar = ({ )} - - - + + + + + + + + {markdownMode ? t("editorToolbar.markdownTheme") : t("editorToolbar.blockStyle")} + + {markdownMode ? ( <> diff --git a/apps/web/src/lib/markdown-theme.test.mjs b/apps/web/src/lib/markdown-theme.test.mjs index f71361b1..7ae7a2ff 100644 --- a/apps/web/src/lib/markdown-theme.test.mjs +++ b/apps/web/src/lib/markdown-theme.test.mjs @@ -76,6 +76,8 @@ describe("markdown theme contracts", () => { expect(toolbar).not.toContain('t("editorToolbar.editorTheme")'); expect(toolbar).not.toContain("namedEditorThemes"); expect(toolbar).toContain('t("editorToolbar.blockStyle")'); + expect(toolbar).toContain("