chore(admin-ui): add w-180 width utility for filters

This commit is contained in:
萝卜
2026-03-16 01:01:04 +08:00
parent d5b6058c4f
commit 2f62a5f180
2 changed files with 33 additions and 0 deletions

View File

@@ -203,6 +203,7 @@ textarea.w-full,input.w-full{width:100%;}
.w-120{width:120px;} .w-120{width:120px;}
.w-140{width:140px;} .w-140{width:140px;}
.w-160{width:160px;} .w-160{width:160px;}
.w-180{width:180px;}
.w-200{width:200px;} .w-200{width:200px;}
input.w-90{width:90px;} input.w-90{width:90px;}

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminBaseCssShouldIncludeW180WidthUtilityTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_admin_base_css_should_include_w180_width_utility(): void
{
$this->loginAsPlatformAdmin();
$css = file_get_contents(public_path('css/admin-base.css'));
$this->assertIsString($css);
// 平台订单筛选区使用 w-180created_from/to必须提供该工具类避免样式缺失。
$this->assertStringContainsString('.w-180{width:180px;}', $css);
}
}