]> git.joonet.de Git - adminer.git/commitdiff
Tables list implemented as <ul>
authorPeter Knut <peter@pematon.com>
Sun, 7 Dec 2014 23:01:52 +0000 (00:01 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sun, 19 Feb 2017 10:39:04 +0000 (11:39 +0100)
Encapsulation of list items is necessery for advanced CSS themes.

adminer/include/adminer.inc.php
adminer/static/default.css

index c6ceedd786c27509de2b9e9f6b29e1b731a88a0b..0a2c98f35c973469e096651599e90d1f17366554 100644 (file)
@@ -935,17 +935,18 @@ bodyLoad('<?php echo (is_object($connection) ? substr($connection->server_info,
        * @return null
        */
        function tablesPrint($tables) {
-               echo "<p id='tables' onmouseover='menuOver(this, event);' onmouseout='menuOut(this);'>\n";
+               echo "<ul id='tables' onmouseover='menuOver(this, event);' onmouseout='menuOut(this);'>\n";
                foreach ($tables as $table => $status) {
-                       echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table, "select") . ">" . lang('select') . "</a> ";
+                       echo '<li><a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table, "select") . ">" . lang('select') . "</a> ";
                        $name = $this->tableName($status);
                        echo (support("table") || support("indexes")
                                ? '<a href="' . h(ME) . 'table=' . urlencode($table) . '"'
                                        . bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"])), (is_view($status) ? "view" : "structure"))
                                        . " title='" . lang('Show structure') . "'>$name</a>"
                                : "<span>$name</span>"
-                       ) . "<br>\n";
+                       ) . "\n";
                }
+               echo "</ul>\n";
        }
 
 }
index be68f7f7faeda9dc81037408d69a7c4360ec216d..b1fae3b762c3d6351850c3931c5ed73af23f858f 100644 (file)
@@ -62,7 +62,8 @@ input.wayoff { left: -1000px; position: absolute; }
 .logout { margin-top: .5em; position: absolute; top: 0; right: 0; }
 .loadmore { margin-left: 1ex; }
 #menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; }
-#menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; }
+#menu p, #tables { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; }
+#tables li{ list-style: none; }
 #dbs { overflow: hidden; }
 #logins, #tables { white-space: nowrap; overflow: auto; }
 #logins a, #tables a, #tables span { background: #fff; }