Merge pull request #1564 from koodo-reader/dev

feat: add custom confirmation dialog width for better responsiveness
This commit is contained in:
troyeguo
2025-12-21 15:37:29 +08:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -30,3 +30,7 @@
left: 24px !important;
top: 14px !important;
}
.custom-confirm-width {
width: 600px !important; /* 设置你需要的宽度 */
max-width: 95% !important; /* 确保在移动端不会溢出 */
}

View File

@@ -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);