From 0b2dcecc701fc964b1c2540b301952bd37d87063 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Jul 2025 12:39:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProjectMaterialsCenter.tsx | 211 +++++++++++----------- src/pages/ProjectDetailPage.tsx | 2 +- 2 files changed, 110 insertions(+), 103 deletions(-) diff --git a/src/components/ProjectMaterialsCenter.tsx b/src/components/ProjectMaterialsCenter.tsx index bbf7710..7acf263 100644 --- a/src/components/ProjectMaterialsCenter.tsx +++ b/src/components/ProjectMaterialsCenter.tsx @@ -88,98 +88,105 @@ const ProjectMaterialsCenter: React.FC = ({ return (
- {/* 头部 */} -
-
-

项目素材

-
- {filteredMaterials.length} / {materials.length} 个素材 -
-
- - {/* 搜索栏 */} -
- + {/* 顶部搜索栏 */} +
+
+ setSearchTerm(e.target.value)} - className="pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent w-full" + className="pl-10 pr-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent w-full text-sm" />
+
- {/* 模特筛选标签 */} -
-
- - 按模特筛选: -
-
- {models.map((model) => ( - - ))} - {selectedModelIds.length > 0 && ( - - )} + {/* 筛选和标题区域 */} +
+
+

项目素材

+
+ {filteredMaterials.length} / {materials.length} 个素材
- {/* 类型过滤 */} -
-
- - 类型: -
-
- {[ - { value: 'all', label: '全部' }, - { value: 'original', label: '原始素材' }, - { value: 'segmented', label: '已分镜头' } - ].map((option) => ( - - ))} + {/* 筛选器 - 紧凑布局 */} +
+ {/* 模特筛选 */} + {models.length > 0 && ( +
+
+ + 模特: +
+
+ {models.map((model) => ( + + ))} + {selectedModelIds.length > 0 && ( + + )} +
+
+ )} + + {/* 类型过滤 */} +
+
+ + 类型: +
+
+ {[ + { value: 'all', label: '全部' }, + { value: 'original', label: '原始' }, + { value: 'segmented', label: '分镜' } + ].map((option) => ( + + ))} +
{/* 素材网格 */} -
+
{filteredMaterials.length === 0 ? ( -
-