1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

CSS: Hide menu on mobile

This commit is contained in:
Jakub Vrana
2025-03-29 11:11:57 +01:00
parent 6cf3d5d2b8
commit 79fbf9c58a
6 changed files with 24 additions and 7 deletions

View File

@@ -86,6 +86,7 @@ const thousandsSeparator = '" . js_escape(lang(',')) . "';")
echo "<div id='help' class='jush-" . JUSH . " jsonly hidden'></div>\n";
echo script("mixin(qs('#help'), {onmouseover: () => { helpOpen = 1; }, onmouseout: helpMouseout});");
echo "<div id='content'>\n";
echo "<span id='menuopen' class='jsonly'>" . icon("move", "", "menu", "") . "</span>" . script("qs('#menuopen').onclick = event => { qs('#foot').classList.toggle('foot'); event.stopPropagation(); }");
if ($breadcrumb !== null) {
$link = substr(preg_replace('~\b(username|db|ns)=[^&]*&~', '', ME), 0, -1);
echo '<p id="breadcrumb"><a href="' . h($link ?: ".") . '">' . get_driver(DRIVER) . '</a> » ';
@@ -193,9 +194,9 @@ function page_messages(string $error): void {
*/
function page_footer(string $missing = ""): void {
global $adminer;
echo "</div>\n\n<div id='menu'>\n";
echo "</div>\n\n<div id='foot' class='foot'>\n<div id='menu'>\n";
$adminer->navigation($missing);
echo "</div>\n\n";
echo "</div>\n";
if ($missing != "auth") {
?>
<form action="" method="post">
@@ -203,9 +204,9 @@ function page_footer(string $missing = ""): void {
<span><?php echo h($_GET["username"]) . "\n"; ?></span>
<input type="submit" name="logout" value="<?php echo lang('Logout'); ?>" id="logout">
<?php echo input_token(); ?>
</p>
</form>
<?php
}
echo "</div>\n\n";
echo script("setupSubmitHighlight(document);");
}