style(商品): 列表改 table-fixed + 百分比列宽(UI 对齐配送系统 · 第 1/7 页)
用户要求:供应商系统 7 个列表页参考配送系统做界面优化(只改 UI,不动业务)。 - 商品管理列表:table-fixed + 列宽百分比(选择/序号 3%、商品 20%、单位 6%、规格 8%), 其余列由 table-fixed 均分剩余宽度,窄屏不再把控件挤到竖排 - 验证:tsc 0 错;products 测试 19 passed
This commit is contained in:
@@ -2178,13 +2178,14 @@ 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="min-w-full divide-y divide-slate-200 dark:divide-slate-700">
|
||||
{/* 2026-10-19 UI 对齐配送系统:table-fixed + 百分比列宽(合计 100%),避免窄屏压缩后控件溢出 */}
|
||||
<table className="w-full table-fixed divide-y divide-slate-200 dark:divide-slate-700">
|
||||
<colgroup>
|
||||
<col style={{ width: 36 }} />
|
||||
<col style={{ width: 40 }} />
|
||||
<col />
|
||||
<col style={{ width: 72 }} />
|
||||
<col style={{ width: 100 }} />
|
||||
<col style={{ width: '3%' }} />
|
||||
<col style={{ width: '3%' }} />
|
||||
<col style={{ width: '20%' }} />
|
||||
<col style={{ width: '6%' }} />
|
||||
<col style={{ width: '8%' }} />
|
||||
<col />
|
||||
<col />
|
||||
<col />
|
||||
|
||||
Reference in New Issue
Block a user