diff options
author | 0neGal <mail@0negal.com> | 2023-07-31 14:33:31 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-07-31 14:33:31 +0200 |
commit | c1040516db8ec60b6922c989399f0fc43d8ab18a (patch) | |
tree | 666535b9885f29744abd3eef092f3f8d588a93d0 /src/app/js | |
parent | 3a58a8b5c4980a1ac4147adbc0f159c24b41084b (diff) | |
download | Viper-c1040516db8ec60b6922c989399f0fc43d8ab18a.tar.gz Viper-c1040516db8ec60b6922c989399f0fc43d8ab18a.zip |
window buttons are no longer hidden behind popups
Diffstat (limited to 'src/app/js')
-rw-r--r-- | src/app/js/browser.js | 2 | ||||
-rw-r--r-- | src/app/js/settings.js | 10 |
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()}; |