fix(worker-platform): 优化接单工单筛选布局

This commit is contained in:
yml2213
2026-11-06 17:43:55 +08:00
parent 91e0bc8c9a
commit 33d7c6597c
3 changed files with 49 additions and 23 deletions
@@ -0,0 +1,18 @@
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
import test from 'node:test'
test('接单工单筛选按内容分配宽度,店铺下拉不能吞掉查询区', async () => {
const [panel, css] = await Promise.all([
readFile(new URL('../src/pages/admin/panels/WorkOrdersPanel.tsx', import.meta.url), 'utf8'),
readFile(new URL('../src/styles/worker.css', import.meta.url), 'utf8'),
])
assert.ok(panel.includes('className="worker-orders-filter-actions"'))
assert.ok(css.includes('flex-wrap: wrap'))
assert.ok(css.includes('.worker-orders-filter-select--wide'))
assert.ok(css.includes('width: 220px'))
assert.ok(css.includes('max-width: 240px'))
assert.ok(css.includes('.worker-orders-filter-actions'))
assert.ok(!css.includes('overflow-x: auto;\n scrollbar-width: thin;'))
})