Roundify more buttons

This commit is contained in:
Fornax committed 2021-09-10 21:27:07 +02:00
1 parent 5465b0776f
commit c0455c59bd
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ function IntroPopup() {
IntroPopup.prototype.moveToElement = function (el) {
let rect = el.getBoundingClientRect()
this.popup.style.top = (rect.top + el.offsetHeight + 20) + "px"
this.popup.style.left = (rect.left + (el.clientWidth / 2) - 30) + "px"
this.popup.style.left = (rect.left + (el.clientWidth / 2) - 40) + "px"
}
IntroPopup.prototype.close = function () {