From d5d0f73bd6bd5a4a698f91b94dc66735a340e33d Mon Sep 17 00:00:00 2001 From: xiamuceer Date: Fri, 14 Nov 2025 19:28:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:1.=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E9=A1=B9=E7=9B=AE=E4=B8=BB=E9=A1=B5=E7=9A=84=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ProjectList.tsx | 210 ++++++++++++++++------------- 1 file changed, 113 insertions(+), 97 deletions(-) diff --git a/frontend/src/pages/ProjectList.tsx b/frontend/src/pages/ProjectList.tsx index 9697215..097cffa 100644 --- a/frontend/src/pages/ProjectList.tsx +++ b/frontend/src/pages/ProjectList.tsx @@ -307,104 +307,120 @@ export default function ProjectList() { {window.innerWidth <= 768 ? ( - // 移动端:按钮分两行显示 + // 移动端:优化布局 - - - - - - - - - - - + {/* 第一行:主要创建按钮 */} + + + + + + + + + {/* 第二行:功能按钮 */} + + + + + + , + onClick: handleOpenExportModal, + disabled: exportableProjects.length === 0 + }, + { + key: 'import', + label: '导入项目', + icon: , + onClick: () => setImportModalVisible(true) + }, + { + type: 'divider' + }, + { + key: 'mcp', + label: 'MCP插件', + icon: , + onClick: () => navigate('/mcp-plugins') + } + ] + }} + placement="bottomRight" + trigger={['click']} + > + + + + +
+ +
+ +
) : ( // PC端:优化后的布局 - 主要按钮 + 下拉菜单