From 30dfaf6e7cfb709dcabb7cb894bdaf8b0001b22d Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 17 Aug 2015 23:53:28 +0100 Subject: [PATCH] css --- lib/css/db.css | 17 +++++++++++++---- lib/php/db/table.php | 2 +- lib/php/nb.php | 8 ++++++++ 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/lib/css/db.css b/lib/css/db.css index 0f8e2e9b..894ab4b0 100644 --- a/lib/css/db.css +++ b/lib/css/db.css @@ -36,18 +36,24 @@ div.rows { text-align: center; } div.rows .row { text-align: left; } */ -.db div.rows { text-align: center; } +.Wdb div.rows { text-align: center; } .db div.rows .row { text-align: left; vertical-align: top; /* margin: 0 0 0.5em 0; + width: 21em; */ margin-bottom: 0.5em; padding: 0.2em; - display: inline-block; - width: 21em; - overflow: auto; +} + +@media screen and (min-width: 400px) { + .db div.rows .row { + width: 23%; + display: inline-block; + overflow: auto; + } } .db div.rows .nav { @@ -107,6 +113,9 @@ div.rows div.buttons { float: right; } font-size: 0.8em; } +.db .sort { + font-size: 80%; +} /* .db .sort { display: inline-block; diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 9a4cb395..bb0d118a 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -328,7 +328,7 @@ FROM pg_catalog.pg_attribute a WHERE a.attrelid = (SELECT c.oid FROM pg_catalog. .''; $html .= ' '; - $html .= ucfirst($name); + $html .= $this->prettyText($name); $html .= ' '; diff --git a/lib/php/nb.php b/lib/php/nb.php index 275f66cf..f22a9e1d 100644 --- a/lib/php/nb.php +++ b/lib/php/nb.php @@ -44,5 +44,13 @@ class nb { return debug($msg,$level); } + /* + * Function: prettyText + * Does what it says + */ + static function prettyText($text) { + return prettyText($text); + } + } ?> -- 2.47.3