refactor: cleanup

This commit is contained in:
2023-11-15 01:46:23 +01:00
parent c5d9defc9d
commit 561300de64
10 changed files with 33 additions and 69 deletions

View File

@@ -27,26 +27,9 @@
text-align: center;
}
dialog {
min-width: 300px;
max-width: 512px;
color: var(--md-sys-color-on-background);
background: var(--md-sys-color-background);
border: none;
border-radius: 38px;
box-shadow: 0 0 48px rgba(0 0 0 / 60%);
}
.buttons {
display: flex;
justify-content: flex-end;
width: 100%;
}
dialog::backdrop {
opacity: 0.5;
background: black;
}
</style>

View File

@@ -15,7 +15,6 @@ export async function askForConfirmation(
abortTitle,
},
})
dialog.show()
let resolvePromise: (value: boolean) => void
const resultPromise = new Promise<boolean>(resolve => {