From 2b97948091ea32b5241273f1b1566b0fb3fed0e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E4=BA=AE?= <787615673@qq.com> Date: Wed, 16 Jul 2025 18:53:48 +0800 Subject: [PATCH 1/3] =?UTF-8?q?style(DocumentSidebar):=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4BlocksTab=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F=E4=BB=A5?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E5=BA=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/docs/_components/DocumentSidebar/BlocksTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx b/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx index 2d5a7791..7a30b6da 100644 --- a/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx +++ b/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx @@ -212,7 +212,7 @@ const BlocksTab = () => { }; return ( -
+
{/* 搜索框 */}
Date: Thu, 17 Jul 2025 14:41:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?style(DocumentSidebar):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=9B=BE=E6=A0=87=E5=92=8C=E6=A0=B7=E5=BC=8F=E4=BB=A5?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新侧边栏区块的图标以保持视觉一致性 调整分类标签的悬停样式和间距 --- .../_components/DocumentSidebar/BlocksTab.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx b/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx index 7a30b6da..09b293af 100644 --- a/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx +++ b/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx @@ -83,8 +83,8 @@ const BlocksTab = () => { { id: 'all', name: '全部', icon: 'Grid3X3' }, { id: 'text', name: '文本', icon: 'Type' }, { id: 'media', name: '媒体', icon: 'Image' }, - { id: 'layout', name: '布局', icon: 'Layout' }, - { id: 'data', name: '数据', icon: 'BarChart3' }, + { id: 'layout', name: '布局', icon: 'LayoutDashboard' }, + { id: 'data', name: '数据', icon: 'Database' }, { id: 'interactive', name: '交互', icon: 'MousePointer' }, ]; @@ -154,28 +154,28 @@ const BlocksTab = () => { category: 'data', }, { - icon: 'BarChart3' as keyof typeof icons, + icon: 'ChartColumnBig' as keyof typeof icons, label: '图表', description: '插入各种类型的图表', blockType: 'chart', category: 'data', }, { - icon: 'Columns' as keyof typeof icons, + icon: 'LayoutDashboard' as keyof typeof icons, label: '多列布局', description: '创建多列内容布局', blockType: 'columns', category: 'layout', }, { - icon: 'Separator' as keyof typeof icons, + icon: 'Minus' as keyof typeof icons, label: '分割线', description: '添加水平分割线', blockType: 'divider', category: 'layout', }, { - icon: 'CheckSquare' as keyof typeof icons, + icon: 'ListTodo' as keyof typeof icons, label: '任务列表', description: '创建可勾选的任务列表', blockType: 'todolist', @@ -212,7 +212,7 @@ const BlocksTab = () => { }; return ( -
+
{/* 搜索框 */}
{ key={category.id} onClick={() => setSelectedCategory(category.id)} className={cn( - 'flex items-center space-x-1.5 px-2.5 py-1.5 rounded-md text-xs transition-colors', + 'flex items-center space-x-1.5 px-2.5 py-1.5 rounded-md text-xs transition-colors cursor-pointer', selectedCategory === category.id ? 'bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300' : 'bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-600', From e000b87c642f7d348d50681c398671ca12d02729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E4=BA=AE?= <787615673@qq.com> Date: Thu, 17 Jul 2025 19:29:21 +0800 Subject: [PATCH 3/3] =?UTF-8?q?style(FileTree):=20=E5=9C=A8=E6=82=AC?= =?UTF-8?q?=E5=81=9C=E6=97=B6=E5=A2=9E=E5=8A=A0=20z-index=20=E4=BB=A5?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=85=83=E7=B4=A0=E9=87=8D=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DocumentSidebar/folder/components/FileTree.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/docs/_components/DocumentSidebar/folder/components/FileTree.tsx b/src/app/docs/_components/DocumentSidebar/folder/components/FileTree.tsx index 2a942b92..431acd15 100644 --- a/src/app/docs/_components/DocumentSidebar/folder/components/FileTree.tsx +++ b/src/app/docs/_components/DocumentSidebar/folder/components/FileTree.tsx @@ -67,8 +67,8 @@ const FileTree: React.FC = ({