From 3afa46272de27cdec35cd7009f48a8795e6fd3d6 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Thu, 23 May 2024 18:15:20 +0100 Subject: [PATCH] Made the divs hide properly after the upload message is displayed --- app/index.html | 4 ++-- static/css/style.css | 6 +++++- static/js/main.js | 4 ++++ static/svg/acct-settings.svg | 1 + 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 static/svg/acct-settings.svg diff --git a/app/index.html b/app/index.html index 0bb6ad2..c8709c2 100644 --- a/app/index.html +++ b/app/index.html @@ -15,8 +15,8 @@
- -

+ +
diff --git a/static/css/style.css b/static/css/style.css index acd41c4..348f8c7 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -262,10 +262,14 @@ body { .topBar .usernameBox { text-align: right; margin-left: auto; - margin-right: 16px; cursor: pointer; } +.topBar img { + scale: 0.5; + filter: invert(var(--invertdm)); +} + .notesBar { position: fixed; width: 180px; diff --git a/static/js/main.js b/static/js/main.js index f5c4934..d454f00 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -641,8 +641,12 @@ function importNotes(plaintextNotes) { .then((response) => { async function doStuff() { if (response.status === 500) { + optionsDiv.classList.add("hidden") + importNotesDiv.classList.add("hidden") displayError("Something went wrong! Perhaps your note file was invalid?") } else { + optionsDiv.classList.add("hidden") + importNotesDiv.classList.add("hidden") displayError("Notes uploaded!") updateNotes() } diff --git a/static/svg/acct-settings.svg b/static/svg/acct-settings.svg new file mode 100644 index 0000000..a2cd760 --- /dev/null +++ b/static/svg/acct-settings.svg @@ -0,0 +1 @@ + \ No newline at end of file