web: settings reset confirmation, icons for small dialog

- cleaned up dialog i18n
- better red color
- made :active state visible for dialog buttons on mobile
- better body padding in small dialog
- better small dialog typing with optional values
This commit is contained in:
wukko
2024-07-20 21:48:17 +06:00
parent def6e26b9f
commit d7bf98a80b
10 changed files with 117 additions and 32 deletions

View File

@@ -16,16 +16,16 @@
$: buttonAltText = $t('a11y.save.download');
$: isDisabled = false;
let defaultErrorPopup = {
let defaultErrorPopup: DialogInfo = {
id: "save-error",
type: "small",
meowbalt: "error",
buttons: [{
text: $t("general.gotit"),
text: $t("dialog.button.gotit"),
main: true,
action: () => {},
}]
} as DialogInfo
}
const changeDownloadButton = (state: string) => {
isDisabled = true;