From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/workflow/note-node/note-editor/toolbar/command.tsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/workflow/note-node/note-editor/toolbar/command.tsx b/app/components/workflow/note-node/note-editor/toolbar/command.tsx index b07989e..43953cf 100644 --- a/app/components/workflow/note-node/note-editor/toolbar/command.tsx +++ b/app/components/workflow/note-node/note-editor/toolbar/command.tsx @@ -32,15 +32,15 @@ const icon = useMemo(() => { switch (type) { case 'bold': - return <RiBold className={cn('h-4 w-4', selectedIsBold && 'text-primary-600')} /> + return <RiBold className={cn('w-4 h-4', selectedIsBold && 'text-primary-600')} /> case 'italic': - return <RiItalic className={cn('h-4 w-4', selectedIsItalic && 'text-primary-600')} /> + return <RiItalic className={cn('w-4 h-4', selectedIsItalic && 'text-primary-600')} /> case 'strikethrough': - return <RiStrikethrough className={cn('h-4 w-4', selectedIsStrikeThrough && 'text-primary-600')} /> + return <RiStrikethrough className={cn('w-4 h-4', selectedIsStrikeThrough && 'text-primary-600')} /> case 'link': - return <RiLink className={cn('h-4 w-4', selectedIsLink && 'text-primary-600')} /> + return <RiLink className={cn('w-4 h-4', selectedIsLink && 'text-primary-600')} /> case 'bullet': - return <RiListUnordered className={cn('h-4 w-4', selectedIsBullet && 'text-primary-600')} /> + return <RiListUnordered className={cn('w-4 h-4', selectedIsBullet && 'text-primary-600')} /> } }, [type, selectedIsBold, selectedIsItalic, selectedIsStrikeThrough, selectedIsLink, selectedIsBullet]) @@ -65,7 +65,7 @@ > <div className={cn( - 'flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-text-tertiary hover:bg-state-accent-active hover:text-text-accent', + 'flex items-center justify-center w-8 h-8 cursor-pointer rounded-md text-text-tertiary hover:text-text-accent hover:bg-state-accent-active', type === 'bold' && selectedIsBold && 'bg-state-accent-active', type === 'italic' && selectedIsItalic && 'bg-state-accent-active', type === 'strikethrough' && selectedIsStrikeThrough && 'bg-state-accent-active', -- Gitblit v1.8.0