feat(settings): animate buttons

This commit is contained in:
2026-02-10 14:03:40 +01:00
parent f8998206c1
commit d7783d881e
14 changed files with 85 additions and 23 deletions

View File

@@ -19,6 +19,7 @@ const handleActivateB = () => {
store.closeSubMenu();
}
},
keepButtonsDown: (choice) => choice === "confirm",
});
};
@@ -565,7 +566,7 @@ useKeyDown((key) => {
<template>
<CommonButtons
:y-offset="confirmationModal.buttonsYOffset"
:y-offset="confirmationModal.buttonsYOffset + store.submenuButtonsOffsetY"
:b-label="$t('common.quit')"
:a-label="$t('common.restart')"
@activate-b="handleActivateB()"

View File

@@ -164,6 +164,7 @@ const handleConfirm = () => {
await animateOutro();
store.closeSubMenu();
},
keepButtonsDown: true,
timeout: 2000,
});
};
@@ -202,7 +203,7 @@ defineOptions({
<template>
<CommonButtons
:y-offset="confirmationModal.buttonsYOffset"
:y-offset="confirmationModal.buttonsYOffset + store.submenuButtonsOffsetY"
:b-label="$t('common.cancel')"
:a-label="$t('common.confirm')"
@activate-b="handleCancel"

View File

@@ -110,6 +110,7 @@ const handleConfirm = () => {
await animateOutro();
store.closeSubMenu();
},
keepButtonsDown: true,
timeout: 2000,
});
};
@@ -179,7 +180,7 @@ onRender((ctx) => {
<template>
<CommonButtons
:y-offset="confirmationModal.buttonsYOffset"
:y-offset="confirmationModal.buttonsYOffset + store.submenuButtonsOffsetY"
:b-label="$t('common.cancel')"
:a-label="$t('common.confirm')"
@activate-b="handleCancel"