]> git.joonet.de Git - adminer.git/commitdiff
Change inline style to class name
authorJakub Vrana <jakub@vrana.cz>
Sat, 27 Oct 2018 19:20:56 +0000 (21:20 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sat, 27 Oct 2018 19:21:20 +0000 (21:21 +0200)
12 files changed:
adminer/create.inc.php
adminer/db.inc.php
adminer/include/adminer.inc.php
adminer/include/editing.inc.php
adminer/indexes.inc.php
adminer/procedure.inc.php
adminer/processlist.inc.php
adminer/select.inc.php
adminer/static/default.css
changes.txt
editor/db.inc.php
plugins/table-structure.php

index 29e9ce801e51ad65b77cd6915cd38d065e5fefa5..6ebff59ee2a52ef5080d53d618880a012b19093e 100644 (file)
@@ -170,7 +170,7 @@ foreach ($engines as $engine) {
 <?php } ?>
 
 <?php if (support("columns")) { ?>
-<div style="overflow-x: auto;">
+<div class="scrollable">
 <table cellspacing="0" id="edit-fields" class="nowrap">
 <?php
 $comments = ($_POST ? $_POST["comments"] : $row["Comment"] != "");
index 8c25010ef7d3f1e9781a9138d3f609daaa7b7b15..3ec137e39b17ef38cbf4323662e46e7c8ec0607d 100644 (file)
@@ -66,7 +66,7 @@ if ($adminer->homepage()) {
                                }
                        }
                        $doc_link = doc_link(array('sql' => 'show-table-status.html'));
-                       echo "<div style='overflow-x: auto;'>\n";
+                       echo "<div class='scrollable'>\n";
                        echo "<table cellspacing='0' class='nowrap checkable'>\n";
                        echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
                        echo '<thead><tr class="wrap">';
index 6ca736f6889c4f878a34718bb98a837fc982ca5f..81a90004e1f6a937c237828dbf8eb0f0c4fa1b1c 100644 (file)
@@ -310,7 +310,7 @@ class Adminer {
        * @return null
        */
        function tableStructurePrint($fields) {
-               echo "<div style='overflow-x: auto;'>\n";
+               echo "<div class='scrollable'>\n";
                echo "<table cellspacing='0' class='nowrap'>\n";
                echo "<thead><tr><th>" . lang('Column') . "<td>" . lang('Type') . (support("comment") ? "<td>" . lang('Comment') : "") . "</thead>\n";
                foreach ($fields as $field) {
index 1c43b8d014f84f7d77e8332608acad6ed2bee1b9..9e3a9bebe0d12b6a5cb149b2827bb381f436d5af 100644 (file)
@@ -17,7 +17,7 @@ function select($result, $connection2 = null, $orgtables = array(), $limit = 0)
        odd(''); // reset odd for each result
        for ($i=0; (!$limit || $i < $limit) && ($row = $result->fetch_row()); $i++) {
                if (!$i) {
-                       echo "<div style='overflow-x: auto;'>\n";
+                       echo "<div class='scrollable'>\n";
                        echo "<table cellspacing='0' class='nowrap'>\n";
                        echo "<thead><tr>";
                        for ($j=0; $j < count($row); $j++) {
index cf2c0cd7992cdf76ef4d9815b1d8b50e67d289a3..de7ff132667e51204cdc324ed4e5aa03ed1c3491 100644 (file)
@@ -94,7 +94,7 @@ if (!$row) {
 ?>
 
 <form action="" method="post">
-<div style="overflow-x: auto;">
+<div class="scrollable">
 <table cellspacing="0" class="nowrap">
 <thead><tr>
 <th id="label-type"><?php echo lang('Index Type'); ?>
index 6d7b083abee46fc8e04ef50674525a33fd575ecf..cd3594d0704ca8c2bf0ede58de64edf1809351b4 100644 (file)
@@ -38,7 +38,7 @@ $routine_languages = routine_languages();
 <p><?php echo lang('Name'); ?>: <input name="name" value="<?php echo h($row["name"]); ?>" data-maxlength="64" autocapitalize="off">
 <?php echo ($routine_languages ? lang('Language') . ": " . html_select("language", $routine_languages, $row["language"]) . "\n" : ""); ?>
 <input type="submit" value="<?php echo lang('Save'); ?>">
-<div style="overflow-x: auto;">
+<div class="scrollable">
 <table cellspacing="0" class="nowrap">
 <?php
 edit_fields($row["fields"], $collations, $routine);
index 6ffe9b09297b5902a1fa73d131971a6b1f5413d8..abf935747ff85b3c49cc857f74a1d3056b1cc3ab 100644 (file)
@@ -13,7 +13,7 @@ page_header(lang('Process list'), $error);
 ?>
 
 <form action="" method="post">
-<div style="overflow-x: auto;">
+<div class="scrollable">
 <table cellspacing="0" class="nowrap checkable">
 <?php
 echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
index 27faa3fde9252b1b1647419b7896f588e036c5a6..a87bc85ed1348f443da59b68713c7c4ae04d29ab 100644 (file)
@@ -309,7 +309,7 @@ if (!$columns && support("table")) {
                } else {
                        $backward_keys = $adminer->backwardKeys($TABLE, $table_name);
 
-                       echo "<div style='overflow-x: auto;'>";
+                       echo "<div class='scrollable'>";
                        echo "<table id='table' cellspacing='0' class='nowrap checkable'>";
                        echo script("mixin(qs('#table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true), onkeydown: editingKeydown});");
                        echo "<thead><tr>" . (!$group && $select
index 2d784fc20fc1f1f736c5543a17154f56255d5cac..9511976ab7b09662caa586c50ddcc91e3f5af391 100644 (file)
@@ -32,6 +32,7 @@ input.wayoff { left: -1000px; position: absolute; }
 .version { color: #777; font-size: 67%; }
 .js .hidden, .nojs .jsonly { display: none; }
 .js .column { position: absolute; background: #ddf; padding: .27em 1ex .3em 0; margin-top: -.27em; }
+.scrollable { overflow-x: auto; }
 .nowrap td, .nowrap th, td.nowrap, p.nowrap { white-space: pre; }
 .wrap td { white-space: normal; }
 .error { color: red; background: #fee; }
index d449ceb20e8638987aa53bba8255ee83a4f80f0c..45c6e39c5eb3270cb619d66fe9cb547373ce7b6f 100644 (file)
@@ -8,6 +8,7 @@ Avoid overwriting existing tables when copying tables (bug #642)
 Fix function change with set data type
 Increase username maxlength to 80 (bug #623)
 Make maxlength in all fields a soft limit
+Make tables horizontally scrollable
 MySQL: Support foreign keys created with ANSI quotes (bug #620)
 MySQL: Recognize ON UPDATE current_timestamp() (bug #632, bug #638)
 MySQL: Descending indexes in MySQL 8 (bug #643)
index fd6ce937d2b39914c52c28d114ace07c6a061e55..6657a1b5debb20a0be23f0a00f8763fe83a07ef2 100644 (file)
@@ -7,7 +7,7 @@ if ($adminer->homepage()) {
        if ($_POST["query"] != "") {
                search_tables();
        }
-       echo "<div style='overflow-x: auto;'>\n";
+       echo "<div class='scrollable'>\n";
        echo "<table cellspacing='0' class='nowrap checkable'>\n";
        echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
        echo '<thead><tr class="wrap">';
index b90386ec57e452c0d1d0a257754ec12f7fa9b643..17a3b0c280d1cf6b813e82a5b18000eb3c7a9dda 100644 (file)
@@ -13,7 +13,7 @@ class AdminerTableStructure {
        * @return bool
        */
        function tableStructurePrint($fields) {
-               echo "<div style='overflow-x: auto;'>\n";
+               echo "<div class='scrollable'>\n";
                echo "<table cellspacing='0' class='nowrap'>\n";
                echo "<thead><tr><th>" . lang('Column') . "<th>" . lang('Type') . "<th>" . lang('Nullable') . "<th>" . lang('Default') . (support("comment") ? "<th>" . lang('Comment') : "") . "</thead>\n";
                foreach ($fields as $field) {