调整财务经营分析表列宽间距

为财务经营分析表设置固定列宽体系,增加文本列、金额列和单元格内边距,保持横向滚动时清晰可读。
This commit is contained in:
chenxi 2026-11-20 13:42:42 +08:00
parent 2466c41ba0
commit dddea5b8eb

View File

@ -28,11 +28,19 @@
.financial-analysis-summary .item span { color:var(--vip-content-muted,#595959); font-size:.7rem; }
.financial-analysis-summary .item b { font-size:.95rem; font-variant-numeric:tabular-nums; }
.financial-analysis-table-wrap { overflow:auto; border:1px solid var(--vip-border,#D8D2C7); border-radius:.5rem; background:#fff; }
.financial-analysis-table { width:100%; min-width:216rem; border-collapse:separate; border-spacing:0; font-size:.78rem; }
.financial-analysis-table th,.financial-analysis-table td { padding:.55rem .65rem; border-right:1px solid var(--vip-border,#D8D2C7); border-bottom:1px solid var(--vip-border,#D8D2C7); white-space:nowrap; vertical-align:top; }
.financial-analysis-table th { position:sticky; top:0; z-index:1; background:var(--vip-content-accent-soft,#F7F0DE); text-align:left; font-weight:700; }
.financial-analysis-table { width:100%; min-width:226rem; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:.78rem; }
.financial-analysis-table th,.financial-analysis-table td { padding:.65rem .85rem; border-right:1px solid var(--vip-border,#D8D2C7); border-bottom:1px solid var(--vip-border,#D8D2C7); white-space:nowrap; vertical-align:middle; line-height:1.5; }
.financial-analysis-table th { position:sticky; top:0; z-index:1; background:var(--vip-content-accent-soft,#F7F0DE); text-align:center; font-weight:700; }
.financial-analysis-table tr:hover td { background:#fcfaf4; }
.financial-analysis-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.financial-analysis-table th.num { text-align:center; }
.financial-analysis-col-month { width:7rem; }
.financial-analysis-col-company_type { width:7.5rem; }
.financial-analysis-col-taxpayer_type { width:8.5rem; }
.financial-analysis-col-company_name { width:14rem; }
.financial-analysis-col-platform { width:8rem; }
.financial-analysis-col-store_name { width:12rem; }
.financial-analysis-col-money { width:10.75rem; }
.financial-analysis-table .muted { color:var(--vip-content-muted,#595959); }
.financial-analysis-empty { padding:4rem 1rem; text-align:center; color:var(--vip-content-muted,#595959); }
.financial-analysis-pagination { display:flex; justify-content:space-between; padding:.75rem 1rem; color:var(--vip-content-muted,#595959); }
@ -94,6 +102,11 @@
<div class="financial-analysis-table-wrap">
<table class="financial-analysis-table">
<colgroup>
@foreach ($columns as $key => $column)
<col class="financial-analysis-col-{{ $key }} {{ $column['type'] === 'num' ? 'financial-analysis-col-money' : '' }}">
@endforeach
</colgroup>
<thead><tr>
@foreach ($columns as $column)
<th class="{{ $column['type'] === 'num' ? 'num' : '' }}">{{ $column['label'] }}</th>