From 86951d5dd329be62b6109445e5f1cbb4e70bd877 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Sun, 21 Dec 2025 15:33:45 +0800 Subject: [PATCH] feat: add custom confirmation dialog width for better responsiveness --- src/assets/styles/global.css | 4 ++++ src/utils/common.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/assets/styles/global.css b/src/assets/styles/global.css index 607ce89c..b53af80d 100644 --- a/src/assets/styles/global.css +++ b/src/assets/styles/global.css @@ -30,3 +30,7 @@ left: 24px !important; top: 14px !important; } +.custom-confirm-width { + width: 600px !important; /* 设置你需要的宽度 */ + max-width: 95% !important; /* 确保在移动端不会溢出 */ +} diff --git a/src/utils/common.ts b/src/utils/common.ts index de18cffd..0227f42c 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -79,6 +79,7 @@ export const vexComfirmAsync = (message) => { window.vex.dialog.buttons.NO.text = i18n.t("Cancel"); window.vex.dialog.confirm({ unsafeMessage: i18n.t(message), + contentClassName: "custom-confirm-width", callback: (value) => { if (value) { resolve(true);