From 075adbfa86e71dba1f0ce457abb27361dd81d2bc Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 9 May 2024 21:18:02 +0200 Subject: [PATCH] fixed the stupid negative margin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit díky sochy --- res/index/script.js | 10 +++++----- res/index/style.css | 6 ++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/res/index/script.js b/res/index/script.js index 907ea0e..924b97c 100644 --- a/res/index/script.js +++ b/res/index/script.js @@ -64,13 +64,13 @@ function set_login_uname(uname) document.getElementById("login_indicator").style.visibility = "visible"; document.getElementById("login_indicator_text").innerText += " " + uname; - document.getElementById("login_buttons").style.visibility = "hidden"; - document.getElementById("logout_button").style.visibility = "visible"; + document.getElementById("login_buttons").style.display = "none"; + document.getElementById("logout_button").style.display = "inline"; } function logout() { - document.getElementById("login_buttons").style.visibility = "visible"; - document.getElementById("logout_button").style.visibility = "hidden"; - document.getElementById("login_indicator").style.visibility = "hidden"; + document.getElementById("login_buttons").style.display = "inline"; + document.getElementById("logout_button").style.display = "none"; + document.getElementById("login_indicator").style.display = "none"; } \ No newline at end of file diff --git a/res/index/style.css b/res/index/style.css index 0d04a80..9a6fad3 100644 --- a/res/index/style.css +++ b/res/index/style.css @@ -103,7 +103,7 @@ body padding-left: 2vh; } -#login_buttons +#login_buttons, #logout_button { margin-top: 5vh; } @@ -115,9 +115,7 @@ body #logout_button { - visibility: hidden; - position: absolute; - margin-top: -8.05vh; + display: none; } #login_indicator