fix: 统一表头和数据行文字大小为text-sm,修复列对齐问题

This commit is contained in:
Codex 2026-04-03 20:12:06 +08:00
parent f83c587794
commit cd1a8c45cd

View File

@ -1031,7 +1031,7 @@ export default function PackagingMaterialsClient({
</div>
<div className="overflow-hidden rounded-[24px] border border-black/5">
<div className="grid grid-cols-[48px_1.4fr_1fr_0.9fr_1fr_0.8fr_0.7fr_auto] items-center gap-2 bg-apple-bg-secondary/65 px-4 py-3 text-xs font-apple-medium uppercase tracking-[0.18em] text-apple-label-tertiary">
<div className="grid grid-cols-[48px_1.4fr_1fr_0.9fr_1fr_0.8fr_0.7fr_auto] items-center gap-2 bg-apple-bg-secondary/65 px-4 py-3 text-sm text-apple-label-tertiary">
<span>图片</span>
<span>名称</span>
<span>编码</span>
@ -1129,13 +1129,13 @@ export default function PackagingMaterialsClient({
<span className="truncate text-sm font-apple-semibold">{variant.name}</span>
</div>
<div className="min-w-0 flex items-center text-apple-label-secondary">
<span className="truncate font-mono text-xs">{variant.code}</span>
<span className="truncate font-mono text-sm">{variant.code}</span>
</div>
<div className="min-w-0 flex items-center text-apple-label-secondary">
<span className="truncate text-sm">{template?.label ?? '未设置'}</span>
</div>
<div className="min-w-0 flex items-center text-apple-label-secondary">
<span className="truncate font-mono text-xs">{specLabel}</span>
<span className="truncate font-mono text-sm">{specLabel}</span>
</div>
<div className="min-w-0 flex items-center text-sm">
{variant.costPrice != null ? (
@ -1143,7 +1143,7 @@ export default function PackagingMaterialsClient({
) : rowComputedCost != null ? (
<span className="text-apple-label-secondary">¥ {rowComputedCost.toFixed(2)}</span>
) : (
<span className="text-xs text-apple-label-tertiary">缺成本</span>
<span className="text-apple-label-tertiary">缺成本</span>
)}
</div>
<div className="flex items-center">