mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2025-12-23 23:17:55 -05:00
Merge pull request #1564 from koodo-reader/dev
feat: add custom confirmation dialog width for better responsiveness
This commit is contained in:
@@ -30,3 +30,7 @@
|
||||
left: 24px !important;
|
||||
top: 14px !important;
|
||||
}
|
||||
.custom-confirm-width {
|
||||
width: 600px !important; /* 设置你需要的宽度 */
|
||||
max-width: 95% !important; /* 确保在移动端不会溢出 */
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user