1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Wrap table.nowrap with div[style="overflow-x: auto"]

This commit is contained in:
kPherox
2018-10-25 19:31:28 +09:00
committed by Jakub Vrana
parent 83a0776e8d
commit e4837a0564
10 changed files with 20 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ class AdminerTableStructure {
* @return bool
*/
function tableStructurePrint($fields) {
echo "<div style='overflow-x: auto;'>\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) {
@@ -26,6 +27,7 @@ class AdminerTableStructure {
echo "\n";
}
echo "</table>\n";
echo "</div>\n";
return true;
}
}