From e3cc3a428d318b5eb3f285591ce405fcff3730a5 Mon Sep 17 00:00:00 2001 From: WuYongJie Date: Mon, 1 Jun 2026 11:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=90=8E=E5=8F=B0=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=92=8C=E5=88=86=E7=B1=BB=E7=AA=84=E5=B1=8F=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/_components/CategoriesTab.tsx | 26 ++++++++++++------------- components/ui/Modal.tsx | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/admin/_components/CategoriesTab.tsx b/app/admin/_components/CategoriesTab.tsx index c85720e..dfe1fc1 100644 --- a/app/admin/_components/CategoriesTab.tsx +++ b/app/admin/_components/CategoriesTab.tsx @@ -7,9 +7,9 @@ * 使用三层架构样式系统,支持深浅色主题 * * 布局结构: - * - 顶部:Header区域(红色框框) - * - 左侧:分类列表(黄色框框,固定不滚动) - * - 右侧:选项卡片列表(绿色框框,可滚动) + * - 顶部:说明区域 + * - 左侧:分类列表 + * - 右侧:选项卡片列表 * * @created 2025-01-XX(拆分自 page.tsx) * @component @@ -583,14 +583,14 @@ export default function CategoriesTab({ showToast, onDataChange, isSuperAdmin = - {/* 主要内容区域:左右分栏 */} -
- {/* 黄色框框:左侧分类列表(固定不滚动) */} -
+ {/* 主要内容区域:桌面左右分栏,窄屏上下排列 */} +
+ {/* 分类列表 */} +

分类列表 @@ -734,11 +734,11 @@ export default function CategoriesTab({ showToast, onDataChange, isSuperAdmin = {disabledFieldMeta.map((field) => (

-
+

{field.label}

-

+

{field.key} · {field.source === 'standard' ? '标准字段' : '模板字段'}

@@ -757,7 +757,7 @@ export default function CategoriesTab({ showToast, onDataChange, isSuperAdmin = )}
-
+
- {/* 绿色框框:右侧选项卡片列表(页面级滚动,显示所有字段) */} + {/* 选项卡片列表(页面级滚动,显示所有字段) */}
{orderedCategories.map((category) => { diff --git a/components/ui/Modal.tsx b/components/ui/Modal.tsx index 733c36c..8470dc9 100644 --- a/components/ui/Modal.tsx +++ b/components/ui/Modal.tsx @@ -18,7 +18,7 @@ import { useThemeStyles, cn } from '@/lib/ui-styles' export type ModalSize = 'xs' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'fullscreen' -const MODAL_BORDER_RADIUS = 12 +const MODAL_BORDER_RADIUS = 8 const sizeStyleMap: Record = { xs: { width: 'min(90vw, 20rem)', maxWidth: '20rem' },