From 8fdbe1f4d2b5bec30d54370bc5088dbfba860e8b Mon Sep 17 00:00:00 2001 From: RememBerBer Date: Wed, 26 Aug 2026 14:07:53 +0800 Subject: [PATCH] =?UTF-8?q?[next]=E9=9A=8F=E6=89=8B=E8=AE=B0=EF=BC=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=A1=B6=E9=83=A8=E4=B8=8D=E5=A4=9F=E6=B2=89?= =?UTF-8?q?=E6=B5=B8=EF=BC=8C=E9=87=8D=E6=96=B0=E8=AE=BE=E8=AE=A1=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E8=BF=98=E6=9C=89=E5=B7=A6=E4=BE=A7=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=A0=8F=E5=92=8C=E7=AC=AC=E4=BA=8C=E6=A0=8F=E4=B8=AD=E9=97=B4?= =?UTF-8?q?=E4=B8=8D=E5=BA=94=E6=9C=89=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next/src/features/quickNote/QuickNoteTool.tsx | 40 ++++++++++----- next/src/shared/styles/global.css | 50 +++++++++++++++---- next/tests/electron/tool-windows.spec.ts | 34 ++++++++----- 3 files changed, 87 insertions(+), 37 deletions(-) diff --git a/next/src/features/quickNote/QuickNoteTool.tsx b/next/src/features/quickNote/QuickNoteTool.tsx index 74376aea..32e63c48 100644 --- a/next/src/features/quickNote/QuickNoteTool.tsx +++ b/next/src/features/quickNote/QuickNoteTool.tsx @@ -2,8 +2,11 @@ import DOMPurify from 'dompurify' import { Check, ChevronDown, + Columns2, CopyPlus, Download, + Eye, + FilePenLine, FilePlus2, FolderOpen, FolderPlus, @@ -928,19 +931,9 @@ export function QuickNoteTool() { : state.quickReplaceOpen ? [320, 170] : [320] return (
-
-

{t('quickNote.title')}

- -
- {(['editor', 'split', 'preview'] as const).map((mode) => ( - - ))} -
-
+

{t('quickNote.title')}

-
+
update({ treeOpen: !state.treeOpen })} /> +
+ {([ + { id: 'editor', icon: FilePenLine }, + { id: 'split', icon: Columns2 }, + { id: 'preview', icon: Eye } + ] as const).map(({ id, icon: ViewIcon }) => ( + + ))} +
+