From 9726e5c3baf48b7ea278c54023deada82ac10cab Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Tue, 20 Oct 2026 18:06:52 +0800 Subject: [PATCH] style(admin): widen the opted-in simulation container dialog Only widen the dense dialog to 1000px; retain other consumers at 560px. --- .../components/ContainerSimulationCreate.test.ts | 1 + .../container-loading/components/ContainerSimulationCreate.vue | 2 +- src/styles/adminDensity.test.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts index 63ad7007..5bb68189 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts +++ b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts @@ -23,6 +23,7 @@ describe('ContainerSimulationCreate opted-in form', () => { await wrapper.findAll('button').find(button => button.text().includes('新增模拟柜'))!.trigger('click') await flushPromises() const dialog = wrapper.findComponent(AppDialog) + expect(dialog.props('width')).toBe(dense ? 'min(1000px, calc(100vw - 28px))' : 'min(560px, calc(100vw - 28px))') dialog.vm.$emit('confirm') await flushPromises() expect(createContainerSimulation).not.toHaveBeenCalled() diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.vue b/src/modules/container-loading/components/ContainerSimulationCreate.vue index 14ef5f95..f56b151c 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.vue +++ b/src/modules/container-loading/components/ContainerSimulationCreate.vue @@ -95,7 +95,7 @@ async function saveSimulation() {