diff --git a/resources/views/business/pages/partials/directory-table.blade.php b/resources/views/business/pages/partials/directory-table.blade.php index 2930b70e..3e9d332b 100644 --- a/resources/views/business/pages/partials/directory-table.blade.php +++ b/resources/views/business/pages/partials/directory-table.blade.php @@ -595,6 +595,53 @@ text-align: left; } + /* 快递运费:列数多(含序号共 12 列),用固定列宽 + 收紧列内边距把全部表头压进一屏; + 超长内容(条形码 / 店铺名称)省略号截断,悬停单元格可看全值。 */ + #directory-table-courier-freight { + table-layout: fixed; + } + #directory-table-courier-freight th, + #directory-table-courier-freight td { + min-width: 0; + padding: 0.35rem; + } + #directory-table-courier-freight td { + overflow: hidden; + text-overflow: ellipsis; + } + #directory-table-courier-freight th:first-child, + #directory-table-courier-freight td:first-child { width: 3.2rem; } + #directory-table-courier-freight th[data-column-key="source"], + #directory-table-courier-freight td[data-column-key="source"] { width: 7rem; } + #directory-table-courier-freight th[data-column-key="part"], + #directory-table-courier-freight td[data-column-key="part"] { width: 5.2rem; } + #directory-table-courier-freight th[data-column-key="transaction_no"], + #directory-table-courier-freight td[data-column-key="transaction_no"] { width: 10.6rem; } + #directory-table-courier-freight th[data-column-key="express_no"], + #directory-table-courier-freight td[data-column-key="express_no"] { width: 7.5rem; } + #directory-table-courier-freight th[data-column-key="barcode"], + #directory-table-courier-freight td[data-column-key="barcode"] { width: 11rem; } + #directory-table-courier-freight th[data-column-key="shop_name"], + #directory-table-courier-freight td[data-column-key="shop_name"] { width: 10rem; } + #directory-table-courier-freight th[data-column-key="freight_amount"], + #directory-table-courier-freight td[data-column-key="freight_amount"] { width: 6.5rem; } + #directory-table-courier-freight th[data-column-key="freight_difference"], + #directory-table-courier-freight td[data-column-key="freight_difference"] { width: 5.2rem; } + #directory-table-courier-freight th[data-column-key="settled_freight"], + #directory-table-courier-freight td[data-column-key="settled_freight"] { width: 5.6rem; } + #directory-table-courier-freight th[data-column-key="other_surcharge_amount"], + #directory-table-courier-freight td[data-column-key="other_surcharge_amount"] { width: 7.2rem; } + #directory-table-courier-freight th[data-column-key="return_fee_amount"], + #directory-table-courier-freight td[data-column-key="return_fee_amount"] { width: 5.4rem; } + /* 排序 / 隐藏字段浮层贴列右缘向左展开;闭合的 details 会为表头贡献不可见溢出宽度,用 clip 收住。 */ + #directory-table-courier-freight .directory-header-menu__panel { + left: auto; + right: 0; + } + #directory-table-courier-freight details:not([open]) { + overflow: clip; + } + .directory-table .is-empty td { height: 8rem; color: var(--vip-content-muted, #595959); @@ -1922,7 +1969,7 @@ $display = in_array($value, [true, 1, '1', '是', '✔'], true) ? '是' : '否'; } @endphp - + @if (($page['slug'] ?? '') === 'store-accounts' && $field['name'] === 'password_configured') {{ filled($display) ? $display : '—' }} @if ($value === false)