fix: 调整人工费用基础信息表头间距

This commit is contained in:
chenxi 2026-10-29 22:24:21 +08:00
parent 4c746d488d
commit 76fadf078f
2 changed files with 8 additions and 1 deletions

View File

@ -241,8 +241,11 @@
}
.labor-expense-table thead tr:first-child th[data-labor-group="base"] {
padding-inline: 1rem;
background: var(--labor-group-base);
box-shadow: inset 0 3px 0 #548235;
letter-spacing: 0.12em;
text-indent: 0.12em;
}
.labor-expense-table thead tr:first-child th[data-labor-group="original"] {

View File

@ -158,6 +158,10 @@ class LaborExpensePageAccessTest extends FeatureTestCase
'const formatted = parsed.toFixed(2);',
$html
);
$this->assertMatchesRegularExpression(
'/th\[data-labor-group="base"\]\s*\{[^}]*padding-inline:\s*1rem;[^}]*letter-spacing:\s*0\.12em;/s',
$html
);
foreach ([
'base' => 'base',
'original' => 'original',
@ -168,7 +172,7 @@ class LaborExpensePageAccessTest extends FeatureTestCase
$this->assertMatchesRegularExpression(
'/\.labor-expense-table thead tr:first-child th\[data-labor-group="' .
$group .
'"\]\s*\{\s*background:\s*var\(--labor-group-' .
'"\]\s*\{[^}]*background:\s*var\(--labor-group-' .
$variable .
'\);/s',
$html