From 0a5e810c5c75ba260479734c2ffd714a694dfa4b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 16 Jan 2017 16:42:03 +0000 Subject: [PATCH] dbq css --- www/dbq/dbq.php | 4 ++-- www/dbq/html/default.css | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 2bed8d80..93327fa2 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -249,13 +249,13 @@ class DbQ extends nb { $args = $GLOBALS['dbq_args']; - $r = ['Vew' => join(' ',[ + $r = ['view' => join(' ',[ 'View' ]) ] + $r; if ($this->perm < self::DELETE) return; $rm = $this->table->base.'/rm/'.$args; - $r['Delete'] = '' + $r['delete'] = '' .'
' .'Delete' .$this->form_hidden($r) diff --git a/www/dbq/html/default.css b/www/dbq/html/default.css index d78fbecf..badf3191 100644 --- a/www/dbq/html/default.css +++ b/www/dbq/html/default.css @@ -107,7 +107,9 @@ table.rows { border-collapse: collapse; box-shadow: 0 0 0 1px #DDDDDD; table-layout: fixed; - width: 99%; + /* + display: inline-block; + */ } table.rows tr:nth-child(even) td { @@ -126,10 +128,22 @@ table.rows tr > * { table.rows td { padding: 0.3em 0.3em; +} + +table.rows td .view, +table.rows td .delete { + width: 1%; + white-space: nowrap; +} + +/* +table.rows td .code +{ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } +*/ table.rows th { text-align: left; @@ -166,7 +180,8 @@ ul.row li label, div.row div label { padding: 0 0.1em; cursor: pointer; color: #EEEEEE; - background-color: #666; + background-color: #444444; + background-color: #CE7F00; padding: 0.1em 0.3em; border: none; } -- 2.47.3