From 326d9d502dbb508f105b0dc6b7b5597e807739e1 Mon Sep 17 00:00:00 2001 From: somebody Date: Wed, 19 Oct 2022 18:25:00 -0500 Subject: [PATCH 1/5] Don't show upload overlay if drag target isn't file May fix #224 --- static/koboldai.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/koboldai.js b/static/koboldai.js index 2612d135..ea288609 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -4682,6 +4682,7 @@ process_cookies(); }); document.body.addEventListener("dragenter", function(e) { + if (!e.dataTransfer.types.includes("application/x-moz-file")) return; lastTarget = e.target; $("#file-upload-notice")[0].classList.remove("hidden"); }); From 0d4a72c190178e493472b3d696d931356e6771bf Mon Sep 17 00:00:00 2001 From: somebody Date: Wed, 19 Oct 2022 18:28:57 -0500 Subject: [PATCH 2/5] Better check --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index ea288609..aa11baea 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -4682,7 +4682,7 @@ process_cookies(); }); document.body.addEventListener("dragenter", function(e) { - if (!e.dataTransfer.types.includes("application/x-moz-file")) return; + if (!e.dataTransfer.types.includes("Files")) return; lastTarget = e.target; $("#file-upload-notice")[0].classList.remove("hidden"); }); From 427e0a469d25fd60f411fedf5bc031f67dde3389 Mon Sep 17 00:00:00 2001 From: LightSaveUs <108632621+LightSaveUs@users.noreply.github.com> Date: Thu, 20 Oct 2022 06:04:35 +0300 Subject: [PATCH 3/5] Update Monochrome.css --- themes/Monochrome.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/Monochrome.css b/themes/Monochrome.css index 1ce6eca9..d01d4829 100644 --- a/themes/Monochrome.css +++ b/themes/Monochrome.css @@ -286,6 +286,10 @@ filter: brightness(120%) !important; } +.settings_button[story_gamesaved="true"] { + filter: brightness(40%); +} + #new-sub-card:hover { filter: brightness(120%) !important; } From 7efefce6ce248488557af925a7eba37f6e92361d Mon Sep 17 00:00:00 2001 From: LightSaveUs <108632621+LightSaveUs@users.noreply.github.com> Date: Thu, 20 Oct 2022 06:05:02 +0300 Subject: [PATCH 4/5] Update Darkness.css --- themes/Darkness.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/Darkness.css b/themes/Darkness.css index 8b1eb52b..04317eb0 100644 --- a/themes/Darkness.css +++ b/themes/Darkness.css @@ -281,11 +281,11 @@ filter: brightness(60%) !important; } -#new-sub-card:active { +.wi_add_button:active { filter: brightness(60%) !important; } -.wi_add_button:active { +#new-sub-card:active { filter: brightness(60%) !important; } From cd493548f6a435e95b52d39dbcfd14ad8968c783 Mon Sep 17 00:00:00 2001 From: LightSaveUs <108632621+LightSaveUs@users.noreply.github.com> Date: Thu, 20 Oct 2022 06:05:24 +0300 Subject: [PATCH 5/5] Update Unicorn.css --- themes/Unicorn.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/Unicorn.css b/themes/Unicorn.css index 58470731..45994227 100644 --- a/themes/Unicorn.css +++ b/themes/Unicorn.css @@ -293,10 +293,6 @@ background-color: #ee7e7e !important; } -#new-sub-card { - border-radius: 10px !important; -} - .wi_add_button { color: #e26771 !important; background: #ebebeb !important; @@ -309,6 +305,10 @@ border: 1px solid #e26771 !important; } +#new-sub-card { + border-radius: 10px !important; +} + #debug-dump:hover { color: #ee7e7e !important; }