diff --git a/src/Channel/index.tsx b/src/Channel/index.tsx index 53b7c18..3d0b22f 100644 --- a/src/Channel/index.tsx +++ b/src/Channel/index.tsx @@ -84,10 +84,10 @@ export default function ChannelPage() { - + - 启用 停用 @@ -160,11 +160,11 @@ export default function ChannelPage() { /> - setCreateVisible(false)} footer={null} style={{ width: 640 }}> + setCreateVisible(false)} footer={null} style={{ width: "40rem" }}> {renderForm(createChannel, { sortOrder: 0, status: "active", isDefault: false })} - setEditingChannel(null)} footer={null} style={{ width: 640 }}> + setEditingChannel(null)} footer={null} style={{ width: "40rem" }}> {editingChannel && renderForm(updateChannel, { name: editingChannel.name, code: editingChannel.code, diff --git a/src/Dashboard/index.tsx b/src/Dashboard/index.tsx index 609db1d..54d42b8 100644 --- a/src/Dashboard/index.tsx +++ b/src/Dashboard/index.tsx @@ -28,9 +28,9 @@ function MetricCard({ label, value, icon }: MetricCardProps & { icon: string })
{METRIC_ICONS[icon]}
- {label} + {label} -
{value}
+
{value}
); } diff --git a/src/Drama/components/DramaDetail.tsx b/src/Drama/components/DramaDetail.tsx index 0d34720..a43448f 100644 --- a/src/Drama/components/DramaDetail.tsx +++ b/src/Drama/components/DramaDetail.tsx @@ -181,7 +181,7 @@ export function DramaDetail({ dramaId }: DramaDetailPageProps) { {drama && ( - setEditVisible(false)} footer={null} style={{ width: 720 }}> + setEditVisible(false)} footer={null} style={{ width: "45rem" }}>
- setVisible(false)} footer={null} style={{ width: 640 }}> + setVisible(false)} footer={null} style={{ width: "40rem" }}> diff --git a/src/Drama/components/EpisodeTable.tsx b/src/Drama/components/EpisodeTable.tsx index 4b94b4f..f0af4f6 100644 --- a/src/Drama/components/EpisodeTable.tsx +++ b/src/Drama/components/EpisodeTable.tsx @@ -117,7 +117,7 @@ export function EpisodeTable({ episodes, loading, uploadingEpisodeId, onUploadVi /> {editingEpisode && ( - setEditingEpisode(null)} footer={null} style={{ width: 680 }}> + setEditingEpisode(null)} footer={null} style={{ width: "42.5rem" }}> { return (
-
+
-

后台登录

-

使用管理员账号进入控制台

+

后台登录

+

使用管理员账号进入控制台

@@ -17,7 +17,7 @@ export const LoginPanel = ({ loading, onSubmit }: LoginPanelProps) => { } placeholder="请输入密码" size="large" /> - diff --git a/src/Login/components/LoginVisual.tsx b/src/Login/components/LoginVisual.tsx index aec97dc..7cca86b 100644 --- a/src/Login/components/LoginVisual.tsx +++ b/src/Login/components/LoginVisual.tsx @@ -3,25 +3,25 @@ export function LoginVisual() {
CT - cth-tk-admin + cth-tk-admin
-
- TikTok 短剧运营后台 -

CTH TikTok 短剧管理后台

-

集中处理短剧内容、剧集发布、订单支付、播放日志和系统权限,帮助运营人员稳定管理短剧业务。

+
+ TikTok 短剧运营后台 +

CTH TikTok 短剧管理后台

+

集中处理短剧内容、剧集发布、订单支付、播放日志和系统权限,帮助运营人员稳定管理短剧业务。

-
+
内容 - 短剧与剧集管理 + 短剧与剧集管理
权限 - 角色化后台授权 + 角色化后台授权
日志 - 请求与播放追踪 + 请求与播放追踪
diff --git a/src/Login/index.tsx b/src/Login/index.tsx index 0d51ae3..aa5161f 100644 --- a/src/Login/index.tsx +++ b/src/Login/index.tsx @@ -23,7 +23,7 @@ function LoginPage() { }; return ( -
+
diff --git a/src/Personnel/index.tsx b/src/Personnel/index.tsx index 9394870..8fd9eec 100644 --- a/src/Personnel/index.tsx +++ b/src/Personnel/index.tsx @@ -89,7 +89,7 @@ function PersonnelPage() { ), }, ]} /> - setCreateVisible(false)} footer={null} style={{ width: 640 }}> + setCreateVisible(false)} footer={null} style={{ width: "40rem" }}>
@@ -120,7 +120,7 @@ function PersonnelPage() { confirmLoading={assigning} onOk={saveAssignedRoles} onCancel={() => setAssignVisible(false)} - style={{ width: 640 }} + style={{ width: "40rem" }} > @@ -138,7 +138,7 @@ function RolesPage() { confirmLoading={savingPermissions} onOk={saveRolePermissions} onCancel={() => setAssignmentVisible(false)} - style={{ width: 640 }} + style={{ width: "40rem" }} > diff --git a/src/components/NoAccessPage/index.tsx b/src/components/NoAccessPage/index.tsx index 7e9a353..6106b64 100644 --- a/src/components/NoAccessPage/index.tsx +++ b/src/components/NoAccessPage/index.tsx @@ -11,7 +11,7 @@ export function NoAccessPage() {
- 当前账号没有访问该功能的权限,请联系系统管理员分配角色。 + 当前账号没有访问该功能的权限,请联系系统管理员分配角色。
); diff --git a/src/components/Panel/index.tsx b/src/components/Panel/index.tsx index e98d998..d971e07 100644 --- a/src/components/Panel/index.tsx +++ b/src/components/Panel/index.tsx @@ -13,7 +13,7 @@ export function Panel({ title, extra, children, className = "", noPadding = fals
{(title || extra) && (
- {title &&

{title}

} + {title &&

{title}

} {extra &&
{extra}
}
)} diff --git a/src/index.css b/src/index.css index c630804..34f376e 100644 --- a/src/index.css +++ b/src/index.css @@ -3,6 +3,10 @@ @tailwind utilities; @layer base { + html { + font-size: 18px; + } + ::-webkit-scrollbar { @apply w-1.5 h-1.5; } @@ -42,7 +46,7 @@ } .form-help { - @apply -mt-3 mb-[18px] text-[13px] leading-[1.6] text-muted; + @apply -mt-3 mb-[1.125rem] text-[0.8125rem] leading-[1.6] text-muted; } .stat-card { @@ -61,7 +65,7 @@ /* ── Menu ───────────────────────────────────────────── */ .arco-menu-item { - margin: 2px 8px !important; + margin: 0.125rem 0.5rem !important; transition: all 0.2s ease !important; } @@ -76,7 +80,7 @@ } .arco-menu-inline-header { - margin: 2px 8px !important; + margin: 0.125rem 0.5rem !important; } .arco-menu-inline-header:hover { @@ -96,12 +100,12 @@ .arco-card-header { border-bottom: 1px solid theme('colors.line / 50%') !important; - padding: 14px 20px !important; + padding: 0.875rem 1.25rem !important; } .arco-card-header-title { font-weight: 600 !important; - font-size: 15px !important; + font-size: 0.9375rem !important; color: theme('colors.ink') !important; } @@ -114,7 +118,7 @@ background-color: theme('colors.header-bg') !important; font-weight: 600 !important; color: theme('colors.secondary') !important; - font-size: 13px !important; + font-size: 0.8125rem !important; letter-spacing: 0.01em; border-bottom: 1px solid theme('colors.line / 80%') !important; } @@ -134,7 +138,7 @@ /* ── Pagination ─────────────────────────────────────── */ .arco-pagination { - margin-top: 16px !important; + margin-top: 1rem !important; } .arco-pagination-item { @@ -188,21 +192,21 @@ .arco-modal-header { border-bottom: 1px solid theme('colors.line / 60%') !important; - padding: 16px 24px !important; + padding: 1rem 1.5rem !important; } .arco-modal-title { font-weight: 600 !important; - font-size: 16px !important; + font-size: 1rem !important; } .arco-modal-body { - padding: 24px !important; + padding: 1.5rem !important; } .arco-modal-footer { border-top: 1px solid theme('colors.line / 60%') !important; - padding: 12px 24px !important; + padding: 0.75rem 1.5rem !important; } /* ── Input & Select ─────────────────────────────────── */ @@ -249,7 +253,7 @@ .arco-form-item-label { font-weight: 500 !important; color: theme('colors.secondary') !important; - font-size: 13px !important; + font-size: 0.8125rem !important; } /* ── Tag ────────────────────────────────────────────── */ @@ -271,7 +275,7 @@ /* ── Dropdown ───────────────────────────────────────── */ .arco-dropdown-menu { - padding: 4px !important; + padding: 0.25rem !important; } .arco-dropdown-menu-item { diff --git a/src/layout/index.tsx b/src/layout/index.tsx index 428c47f..ae6e6ca 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -52,14 +52,14 @@ export function AdminLayout() { -
+
TK - {!collapsed && TK短剧管理后台} + {!collapsed && TK短剧管理后台}
-
+