From 76fadf078f450dcfc3db1450c9fbb1dd63a8ae58 Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 29 Oct 2026 22:24:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E4=BA=BA=E5=B7=A5?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/financial-operations/labor-expenses.blade.php | 3 +++ tests/Feature/Business/LaborExpensePageAccessTest.php | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/views/business/pages/financial-operations/labor-expenses.blade.php b/resources/views/business/pages/financial-operations/labor-expenses.blade.php index 7f10951e..50d097ef 100644 --- a/resources/views/business/pages/financial-operations/labor-expenses.blade.php +++ b/resources/views/business/pages/financial-operations/labor-expenses.blade.php @@ -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"] { diff --git a/tests/Feature/Business/LaborExpensePageAccessTest.php b/tests/Feature/Business/LaborExpensePageAccessTest.php index 9995f2c8..71c74e46 100644 --- a/tests/Feature/Business/LaborExpensePageAccessTest.php +++ b/tests/Feature/Business/LaborExpensePageAccessTest.php @@ -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 -- 2.47.2