From e9014c3fdd32182f47ee4405b68233081c43131a Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 23 Jul 2021 23:14:25 +0700 Subject: [PATCH] fix sweetalert11 issue #789 --- src/dialogs.jsx | 2 +- src/main.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dialogs.jsx b/src/dialogs.jsx index 6b43aa70..c2155f80 100644 --- a/src/dialogs.jsx +++ b/src/dialogs.jsx @@ -102,7 +102,7 @@ export async function askForOutDir(defaultPath) { export async function askForFileOpenAction() { const { value } = await Swal.fire({ - title: i18n.t('You opened a new file. What do you want to do?'), + text: i18n.t('You opened a new file. What do you want to do?'), icon: 'question', input: 'radio', inputValue: 'open', diff --git a/src/main.css b/src/main.css index cc2ba4b4..79da7741 100644 --- a/src/main.css +++ b/src/main.css @@ -60,4 +60,9 @@ kbd { /* !important is important: https://github.com/mifi/lossless-cut/issues/541#issuecomment-750003650 */ align-items: flex-start !important; text-align: left; +} + +.swal2-container { + /* because body is set to white */ + color: black; } \ No newline at end of file