From 127b3f61541b261dde1a5d02491fabdf5ac937d8 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 12 Jul 2013 08:33:13 -0700 Subject: [PATCH] SimpleDB: Display overflown table names --- adminer/include/adminer.inc.php | 2 +- adminer/static/default.css | 2 +- adminer/static/functions.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index c8dfedc7..04941b02 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -840,7 +840,7 @@ username.form['auth[driver]'].onchange(); $name = $this->tableName($status); echo (support("table") ? '$name" - : $name + : "$name" ) . "
\n"; } } diff --git a/adminer/static/default.css b/adminer/static/default.css index 0d508724..c2fb2eb4 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -58,7 +58,7 @@ input.required { box-shadow: 1px 1px 1px red; } #menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; } #dbs { overflow: hidden; } #logins, #tables { white-space: nowrap; overflow: auto; text-overflow: ellipsis; } -#logins a, #tables a { background: #fff; } +#logins a, #tables a, #tables span { background: #fff; } #content { margin: 2em 0 0 21em; padding: 10px 20px 20px 0; } #lang { position: absolute; top: 0; left: 0; line-height: 1.8em; padding: .3em 1em; } #breadcrumb { white-space: nowrap; position: absolute; top: 0; left: 21em; background: #eee; height: 2em; line-height: 1.8em; padding: 0 1em; margin: 0 0 0 -18px; } diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 2d5f2f7b..1336844d 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -248,7 +248,7 @@ function pageClick(href, page, event) { */ function menuOver(el, event) { var a = event.target; - if (/^a$/i.test(a.tagName) && a.offsetLeft + a.offsetWidth > a.parentNode.offsetWidth - 15) { // 15 - ellipsis + if (/^(a|span)$/i.test(a.tagName) && a.offsetLeft + a.offsetWidth > a.parentNode.offsetWidth - 15) { // 15 - ellipsis el.style.overflow = 'visible'; } }