From 63014471b465bfe99dcc2ca78c191bc87edabe7f Mon Sep 17 00:00:00 2001 From: imeepos Date: Wed, 23 Jul 2025 21:04:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=8F=E5=B8=83=E5=B1=80=E5=92=8C=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UI优化: - 简化导航栏菜单名称,提升用户体验 * 项目管理 项目 * 模特管理 模特 * 模板管理 模板 * 素材绑定 素材 * AI分类设置 分类 * 服装搭配 穿搭 * 便捷工具 工具 布局调整: - 优化导航栏间距和内边距,更加紧凑 - 调整主容器滚动区域到main元素 - 减少导航项之间的间距(space-x-4 space-x-2) - 优化内边距(px-3 px-2, ml-10 ml-4) 代码清理: - 移除未使用的CogIcon导入 - 移除应用设置相关的导航项 这些调整让导航栏更加简洁明了,提升了界面的整体美观度 --- apps/desktop/src/App.tsx | 4 ++-- apps/desktop/src/components/Navigation.tsx | 27 ++++++++-------------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index 7e6aa7d..a0cae94 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -98,8 +98,8 @@ function App() { {/* 可滚动的主要内容区域 */} -
-
+
+
} /> } /> diff --git a/apps/desktop/src/components/Navigation.tsx b/apps/desktop/src/components/Navigation.tsx index a6edc3c..57cc36f 100644 --- a/apps/desktop/src/components/Navigation.tsx +++ b/apps/desktop/src/components/Navigation.tsx @@ -8,7 +8,6 @@ import { LinkIcon, WrenchScrewdriverIcon, SparklesIcon, - CogIcon } from '@heroicons/react/24/outline'; const Navigation: React.FC = () => { @@ -16,52 +15,46 @@ const Navigation: React.FC = () => { const navItems = [ { - name: '项目管理', + name: '项目', href: '/', icon: FolderIcon, description: '管理项目和素材' }, { - name: '模特管理', + name: '模特', href: '/models', icon: UserGroupIcon, description: '管理模特信息' }, { - name: '模板管理', + name: '模板', href: '/templates', icon: DocumentDuplicateIcon, description: '管理剪映模板' }, { - name: '素材绑定', + name: '素材', href: '/material-model-binding', icon: LinkIcon, description: '管理素材与模特的绑定关系' }, { - name: 'AI分类设置', + name: '分类', href: '/ai-classification-settings', icon: CpuChipIcon, description: '管理AI视频分类规则' }, { - name: '服装搭配', + name: '穿搭', href: '/fashion-chat', icon: SparklesIcon, description: 'AI智能服装搭配推荐' }, { - name: '便捷工具', + name: '工具', href: '/tools', icon: WrenchScrewdriverIcon, description: 'AI检索图片/数据清洗工具' - }, - { - name: '应用设置', - href: '/settings', - icon: CogIcon, - description: '屏幕适配和应用配置' } ]; @@ -74,7 +67,7 @@ const Navigation: React.FC = () => { return (