Răsfoiți Sursa

将管理表格单行文字统一为十三像素

sy 18 ore în urmă
părinte
comite
4fbf2d16fb

+ 1 - 1
web-scaffold/src/pages/CustomerSelfServicePages.tsx

@@ -170,7 +170,7 @@ export function CustomerAccountsPage() {
               ? <span className="ops-muted" title="该席位已停用,登录名随停用不再展示">已停用</span>
               : <Tri tone="missing" text={MISSING} title="sub_account.username 已下发、值为空" />}</strong></td>
         <td>{seatDisplayName(row)
-          ? <>{seatDisplayName(row)}{isSeatPlaceholder(row) && <small className="ml-1 text-xs opacity-70">(席位占位·姓名待填)</small>}</>
+          ? <><span>{seatDisplayName(row)}</span>{isSeatPlaceholder(row) && <small className="ml-1 text-xs opacity-70">(席位占位·姓名待填)</small>}</>
           : row.status === "not_opened"
             ? <span className="ops-muted" title="该席位尚未开通,真实姓名开通后由客户填写">未开通(开通后填写)</span>
             : <Tri tone="missing" text={MISSING} title="sub_account.display_name 已下发、值为空" />}</td>

+ 1 - 1
web-scaffold/src/pages/ScheduledJobManagementPage.tsx

@@ -259,7 +259,7 @@ function MaintRow({
         <span className="table-cell-title">{row.displayName}</span>
       </td>
       <td>
-        {row.cronHint}
+        <span>{row.cronHint}</span>
         <small>{row.triggerText}</small>
       </td>
       <td>

+ 1 - 1
web-scaffold/src/pages/TeamQueuePage.tsx

@@ -151,7 +151,7 @@ export function QueueBoard({ teamId, teamName, showTeamColumn = false, canAutoDi
             <td><Link className="workspace-link" to={`/work-orders/${encodeURIComponent(item.ticket_id)}`} state={{ from: location.pathname + location.search }}>{item.ticket_no ?? "未编号"}</Link><small>{item.customer_name ?? "-"}</small></td>
             <td><OpsTag tone="brand">{typeLabel(item.ticket_type)}</OpsTag><small>{statusLabel(item.status, item.ticket_type)}</small></td>
             {showTeamColumn && <td>{item.team_name ?? "未分派团队"}</td>}
-            <td className="wrap">{item.title ?? "-"}{item.overdue_7d && <small className="workspace-danger">超期/临期(7 日内)</small>}</td>
+            <td className="wrap"><span>{item.title ?? "-"}</span>{item.overdue_7d && <small className="workspace-danger">超期/临期(7 日内)</small>}</td>
             <td>{fmtTime(item.created_at)}</td>
             <td><div className="workspace-actions"><button className="workspace-link" onClick={() => void openAssign(item)}><UserRoundCheck size={15} />指定成员</button><Link className="workspace-link" to={`/work-orders/${encodeURIComponent(item.ticket_id)}`} state={{ from: location.pathname + location.search }}>详情</Link></div></td>
           </tr>)}

+ 1 - 1
web-scaffold/src/pages/WorkOrderDeliveryPage.tsx

@@ -120,7 +120,7 @@ function DeliveryList({ tab, page, onPageChange }: { tab: Exclude<DeliveryTab, "
         <td>{row.assignee_name ?? "待分派"}</td>
         <td>{row.team_name ?? "未分派团队"}</td>
         <td>{fmtTime(row.completed_at)}</td>
-        <td>{row.expected_done_date ? row.expected_done_date.slice(0, 10) : "—"}{row.overdue_7d && <small className="work-order-overdue-text">超期/临期</small>}</td>
+        <td><span>{row.expected_done_date ? row.expected_done_date.slice(0, 10) : "—"}</span>{row.overdue_7d && <small className="work-order-overdue-text">超期/临期</small>}</td>
         <td>{tab === "receipt" ? (mainline ? "确认后闭环" : "等客户确认") : "同号覆盖重推"}</td>
         <td>{tab === "receipt"
           ? mainline

+ 1 - 1
web-scaffold/src/pages/WorkOrderOverviewPage.tsx

@@ -143,7 +143,7 @@ function WorkOrderOverviewInner() {
               <td><Link className="work-order-ticket-link" to={`/work-orders/${encodeURIComponent(row.ticket_id)}`} state={{ from: "/work-orders/overview" }}>{row.ticket_no ?? "-"}</Link><small>{row.customer_name ?? "-"}</small></td>
               <td><TicketTypeTag type={row.ticket_type} /></td>
               <td><TicketStatusTag status={row.status} type={row.ticket_type} /></td>
-              <td>{fmtDate(row.expected_done_date)}{row.overdue_7d && <small className="work-order-overdue-text">超期/临期</small>}</td>
+              <td><span>{fmtDate(row.expected_done_date)}</span>{row.overdue_7d && <small className="work-order-overdue-text">超期/临期</small>}</td>
               <td className="work-order-next-step-cell">{step.label ? <Link className={`work-order-next-step tone-${step.tone}`} to={`/work-orders/${encodeURIComponent(row.ticket_id)}${step.action ? `?act=${step.action}` : ""}`} state={{ from: "/work-orders/overview" }}>{step.label}</Link> : <span className="work-order-next-step is-passive">—</span>}<small>{step.hint}</small></td>
             </tr>;
           })}</tbody>

+ 6 - 6
web-scaffold/src/styles/globals.css

@@ -378,15 +378,15 @@ table tbody td .table-cell-title {
   font-weight: 500;
 }
 
-/* 表体内的上下两行文字使用 13px / 12px,状态标签和操作控件保留各自的字号。 */
-table[class] tbody td:has(> :is(small, br)),
-table[class] tbody td:has(> :is(small, br)) > strong,
-table[class] tbody td > small.ops-stacked:first-child:has(+ small.ops-stacked) {
+/* 表体正文默认 13px,只有后续说明行使用 12px。 */
+table tbody td,
+table[class] tbody td,
+table[class] tbody td > :is(strong, small),
+table[class] tbody td > small.ops-mono {
   font-size: var(--type-support);
 }
 
-table[class] tbody td > small,
-table[class] tbody td > small.ops-mono,
+table[class] tbody td > small:not(:first-child),
 table[class] tbody td > br + .ops-muted {
   font-size: var(--type-meta);
 }

+ 1 - 1
web-scaffold/src/styles/organization.css

@@ -293,7 +293,7 @@
 .org-maintenance-ledger-table td{vertical-align:middle}
 .org-maintenance-ledger-table td:first-child{min-width:170px}
 .org-maintenance-ledger-table td:last-child{min-width:235px}
-:is(.org-table,.share-ledger) .org-maintenance-share strong{color:var(--primary);font-size:var(--type-body);font-variant-numeric:tabular-nums}
+:is(.org-table,.share-ledger) .org-maintenance-share strong{color:var(--primary);font-size:var(--type-support);font-variant-numeric:tabular-nums}
 :is(.org-table,.share-ledger) .org-maintenance-share small{color:var(--text-secondary)}
 .org-maintenance-ticket-types{max-width:210px;white-space:normal}
 .org-maintenance-scope-cell{max-width:230px;white-space:normal;line-height:1.5}

+ 2 - 2
web-scaffold/src/styles/scheduled-jobs.css

@@ -123,7 +123,7 @@
 .job-ledger td code { display: block; margin-top: 4px; font-size: var(--type-meta); }
 .job-ledger-trigger, .job-ledger-time { color: var(--foreground); }
 .job-ledger-time { font-variant-numeric: tabular-nums; }
-.job-ledger td .job-ledger-counts { font-size: var(--type-meta); letter-spacing: 0; }
+.job-ledger td .job-ledger-counts { letter-spacing: 0; }
 .job-ledger-counts .is-failed { color: var(--destructive); font-weight: 700; }
 .job-ledger-actions { gap: 4px 8px; justify-content: flex-end; }
 .job-ledger th:last-child, .job-ledger td:last-child { text-align: right; }
@@ -226,7 +226,7 @@
 .job-runs-table .ops-table :is(th, td):where(:last-child) { padding-inline-end: 14px; }
 .job-runs-table .ops-table th { white-space: normal; }
 .job-runs-table th small, .job-runs-table td small { display: block; margin-top: 3px; font-size: var(--type-meta); line-height: 1.4; }
-.job-runs-table td code { display: block; font-size: var(--type-meta); }
+.job-runs-table td code { display: block; }
 .job-run-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .job-run-cell-label { display: none; }
 .job-runs-table .ops-status { max-width: 100%; }