aboutsummaryrefslogtreecommitdiff
path: root/src/app/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/js')
-rw-r--r--src/app/js/browser.js2
-rw-r--r--src/app/js/settings.js10
2 files changed, 9 insertions, 3 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index 06d3dd9..ec5013a 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -82,7 +82,7 @@ var Browser = {
let filterRect = filter.getBoundingClientRect();
let spacing = parseInt(getComputedStyle(filters).getPropertyValue("--spacing"));
- filters.style.top = filterRect.bottom - spacing;
+ filters.style.top = filterRect.bottom - (spacing + (spacing * 1.3));
filters.style.right = filterRect.right - filterRect.left + filterRect.width - (spacing / 2);
},
},
diff --git a/src/app/js/settings.js b/src/app/js/settings.js
index 20cd4b6..682aa49 100644
--- a/src/app/js/settings.js
+++ b/src/app/js/settings.js
@@ -1,17 +1,22 @@
+
var Settings = {
toggle: (state) => {
+ let settings_btn = document.getElementById("settings");
+
if (state) {
Settings.load();
options.scrollTo(0, 0);
overlay.classList.add("shown");
options.classList.add("shown");
+ settings_btn.classList.add("shown");
- return
+ return;
} else if (! state) {
if (state != undefined) {
overlay.classList.remove("shown");
options.classList.remove("shown");
- return
+ settings_btn.classList.remove("shown");
+ return;
}
}
@@ -19,6 +24,7 @@ var Settings = {
options.scrollTo(0, 0);
overlay.classList.toggle("shown");
options.classList.toggle("shown");
+ settings_btn.classList.toggle("shown");
},
apply: () => {
settings = {...settings, ...Settings.get()};