style(商品): 表头单行截断(对齐配送「单…/税…/预警数…」效果)
供应商这页 14 列,表头之前会竖排。参照配送:th 加 whitespace-nowrap + truncate,超长表头显示省略号而不是换行。
This commit is contained in:
@@ -2178,7 +2178,7 @@ export const SkuManagement: React.FC = () => {
|
||||
{/* Table */}
|
||||
<div className="app-surface rounded-3xl border shadow-xl shadow-slate-900/5 flex-1 min-h-0 flex flex-col overflow-hidden">
|
||||
<div className="overflow-auto flex-1 min-h-0">
|
||||
<table className="w-full table-fixed divide-y divide-slate-200 dark:divide-slate-700 [&>thead>tr>th]:overflow-hidden [&>tbody>tr>td]:overflow-hidden [&>tbody>tr>td]:align-middle">
|
||||
<table className="w-full table-fixed divide-y divide-slate-200 dark:divide-slate-700 [&>thead>tr>th]:overflow-hidden [&>thead>tr>th]:whitespace-nowrap [&>thead>tr>th]:truncate [&>tbody>tr>td]:overflow-hidden [&>tbody>tr>td]:align-middle">
|
||||
{/* 2026-10-19 UI 对齐配送系统:显式百分比列宽,**合计 100%**(禁止均分兜底,窄屏才不会挤爆控件) */}
|
||||
<colgroup>
|
||||
<col style={{ width: '3%' }} />
|
||||
|
||||
Reference in New Issue
Block a user