diff --git a/public/index.html b/public/index.html index 6b19904d4..9d4d9da9b 100644 --- a/public/index.html +++ b/public/index.html @@ -63,7 +63,7 @@
-
+
@@ -800,7 +800,7 @@
-
+
@@ -968,7 +968,7 @@
-
+
@@ -1080,7 +1080,7 @@
-
+
@@ -1132,7 +1132,7 @@
-
+
@@ -1301,7 +1301,7 @@
-
+
@@ -1319,7 +1319,7 @@
-
+
@@ -1355,7 +1355,7 @@
-
+
diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index ae9259403..93e1069ee 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -364,24 +364,27 @@ function dragElement(elmnt) { //fix over/underflows: + setTimeout(function () { + if (elmnt.offsetTop - pos2 <= 0) { + //prevent going out of window top + 42px barrier for TopBar (can hide grabber) + elmnt.style.top = "0px"; + } else if (elmnt.offsetLeft - pos1 <= 0) { + //prevent moving out of window left + elmnt.style.left = "0px"; + } else if (maxX >= winWidth) { + //bounce off right + elmnt.style.left = elmnt.offsetLeft - 10 + "px"; + } else if (maxY >= winHeight) { + //bounce off bottom + elmnt.style.top = elmnt.offsetTop - 10 + "px"; + } else { + // if no problems, set element's new position - if (elmnt.offsetTop - pos2 <= 42) { - //prevent going out of window top + 42px barrier for TopBar (can hide grabber) - elmnt.style.top = "42px"; - } else if (elmnt.offsetLeft - pos1 <= 0) { - //prevent moving out of window left - elmnt.style.left = "0px"; - } else if (maxX >= winWidth) { - //bounce off right - elmnt.style.left = elmnt.offsetLeft - 20 + "px"; - } else if (maxY >= winHeight) { - //bounce off bottom - elmnt.style.top = elmnt.offsetTop - 20 + "px"; - } else { - // if no problems, set element's new position - elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; - elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; - } + elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; + elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; + + } + }, 50) /* console.log("left/top: " + (elmnt.offsetLeft - pos1) + "/" + (elmnt.offsetTop - pos2) + ", win: " + winWidth + "/" + winHeight + diff --git a/public/style.css b/public/style.css index e7554b23b..2f15c33c5 100644 --- a/public/style.css +++ b/public/style.css @@ -157,7 +157,8 @@ code { line-height: var(--mainFontSize); } -#bg1, #bg_custom { +#bg1, +#bg_custom { background-repeat: no-repeat; background-attachment: fixed; background-size: cover; @@ -2923,6 +2924,7 @@ label[for="extensions_autoconnect"] { display: flex; flex-flow: column; width: 100%; + /* z-index: 3001; */ } @@ -3002,7 +3004,7 @@ label[for="extensions_autoconnect"] { backdrop-filter: blur(calc(var(--SmartThemeBlurStrength))); -webkit-backdrop-filter: blur(calc(var(--SmartThemeBlurStrength))); resize: both; - z-index: 9999; + z-index: 9999 !important; } .fillRight,