From cddd415e22150a252ace8dede7831a4d567418e2 Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Mon, 2 May 2022 01:09:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=A3=20more=20bugfixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/common.css | 7 +++++- src/components/dialogs.tsx | 12 +++++++-- src/manifest.json | 1 + src/modules/crypto/index.ts | 39 ++++++++++++++-------------- src/pages/import/index.html | 14 +++++++++++ src/pages/import/main.tsx | 47 ++++++++++++++++++++++++++++++++++ src/pages/import/style.css | 35 ++++++++++++++++++++++++++ src/pages/popup/main.tsx | 49 +++++++++++++++++++++++------------- src/pages/popup/style.css | 13 +++++++++- 9 files changed, 176 insertions(+), 41 deletions(-) create mode 100644 src/pages/import/index.html create mode 100644 src/pages/import/main.tsx create mode 100644 src/pages/import/style.css diff --git a/src/assets/styles/common.css b/src/assets/styles/common.css index 5e232ce..bf219fb 100644 --- a/src/assets/styles/common.css +++ b/src/assets/styles/common.css @@ -59,13 +59,17 @@ h6 { margin: 0; } +pre { + margin: 0; + white-space: break-spaces; +} + .options { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(3em, 1fr)); justify-content: center; gap: .25em; - padding: 0 1.5em; } .button { @@ -82,6 +86,7 @@ h6 { border: unset; font: inherit; + cursor: pointer; } .button.active { diff --git a/src/components/dialogs.tsx b/src/components/dialogs.tsx index b225482..6135e96 100644 --- a/src/components/dialogs.tsx +++ b/src/components/dialogs.tsx @@ -79,6 +79,7 @@ export function Dialogs(params: { manager: ReturnType
- +
{currentAlert.message}
{currentAlert.type === 'prompt' && setValue(event.currentTarget.value)} />}
+ {/* This is here to capture, return key */} + + {currentAlert.type !== 'alert' && }