mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 15:22:16 +00:00
Use css instead of JS to detect offset on high viewports
This commit is contained in:
@@ -357,7 +357,6 @@ class BackgroundCanvas {
|
|||||||
this.w = document.documentElement.clientWidth;
|
this.w = document.documentElement.clientWidth;
|
||||||
this.h = document.documentElement.clientHeight;
|
this.h = document.documentElement.clientHeight;
|
||||||
this.offset = this.$footer.offsetHeight - 27;
|
this.offset = this.$footer.offsetHeight - 27;
|
||||||
if (this.h >= 800) this.offset += 10;
|
|
||||||
|
|
||||||
if (oldW === this.w && oldH === this.h && oldOffset === this.offset) return; // nothing has changed
|
if (oldW === this.w && oldH === this.h && oldOffset === this.offset) return; // nothing has changed
|
||||||
|
|
||||||
|
|||||||
@@ -899,7 +899,7 @@ x-peers:empty~x-instructions {
|
|||||||
|
|
||||||
@media screen and (min-height: 800px) {
|
@media screen and (min-height: 800px) {
|
||||||
footer {
|
footer {
|
||||||
margin-bottom: 16px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user