]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Only show leftnav "footer" if we actually have leftnav, and hide on
authorBram Matthys <redacted>
Mon, 17 Apr 2023 15:39:32 +0000 (17:39 +0200)
committerBram Matthys <redacted>
Mon, 17 Apr 2023 15:39:32 +0000 (17:39 +0200)
screen width as well (bit of a duplicate check, but whatever).

css/unrealircd-admin.css
footer.php
header.php

index db859850588a743692c9420a6bfcea0974f45540..ab6e95be61e5a3c7e1e1741ac4ceb288bda31d85 100644 (file)
@@ -253,7 +253,7 @@ body {
 /* Show version and 4-icons "footer" at bottom-left,
  * if screen height is sufficient.
  */
-@media only screen and (min-height: 650px) {
+@media only screen and (min-height: 650px) and (min-width: 768px) {
     footer {
         float: left;
         width: 160px;
index 6b1f1a114c0422de686ff798147f57cbe1ce22b4..46bb18f8284bb1fb2e826045723736f200fefb48 100644 (file)
@@ -1,3 +1,7 @@
+<?php
+       if (!isset($nav_shown))
+               return;
+?>
 <footer class="text-center bg-dark text-white fixed-bottom" style="background-color: #f1f1f1;">
        <!-- Grid container -->
        <div class="container">
index 61c297e26aa3a860a25e492734fb9f193a0a48d8..db00e1e3026f758bbc1064eab690a341a8c9675c 100644 (file)
@@ -1,5 +1,7 @@
 <?php
-$arr = []; Hook::run(HOOKTYPE_PRE_HEADER, $arr); ?>
+$nav_shown = true;
+$arr = []; Hook::run(HOOKTYPE_PRE_HEADER, $arr);
+?>
 <!DOCTYPE html>
 <head>
 <?php if (is_auth_provided() && !str_ends_with($_SERVER['SCRIPT_FILENAME'], "setup.php"))