summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-07-21 12:15:36 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-07-21 12:15:36 +0000
commitfaa5479e472356770a8cda116defd002d88b20d6 (patch)
tree569c30a5dc7f52994523c150d1ea0ba35d052280 /share
parent2e8eeb0af9defee040d3e6496fdb5508940d1161 (diff)
Avoid wrapping of long database names in the Futon sidebar.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796269 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/futon.js4
-rw-r--r--share/www/style/layout.css10
2 files changed, 7 insertions, 7 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js
index b9f05791..77bd8cc8 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -65,9 +65,9 @@
recentDbs.sort();
$.each(recentDbs, function(idx, name) {
if (name) {
- $("#dbs").append("<li><a href='database.html?" +
- encodeURIComponent(name) + "'>" + name +
+ $("#dbs").append("<li>" +
"<button class='remove' title='Remove from list' value='" + name + "'></button>" +
+ "<a href='database.html?" + encodeURIComponent(name) + "'>" + name +
"</a></li>");
}
});
diff --git a/share/www/style/layout.css b/share/www/style/layout.css
index 3200a640..f1575f9d 100644
--- a/share/www/style/layout.css
+++ b/share/www/style/layout.css
@@ -160,8 +160,8 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
#logo { padding: 20px 18px; }
#nav { color: #333; font-size: 110%; font-weight: bold; list-style: none;
- margin: 0; overflow: auto; padding: 0; position: absolute; top: 185px;
- bottom: 20px; right: 0; width: 210px;
+ margin: 0; overflow: auto; overflow-x: hidden; padding: 0;
+ position: absolute; top: 185px; bottom: 20px; right: 0; width: 210px;
}
#nav ul { list-style: none; margin: 0; padding: 0; }
#nav li { color: #999; margin: 5px 0 0; padding: 3px 0; }
@@ -173,7 +173,7 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
#nav li li:hover { background: #e4e4e4; }
#nav li.selected li:hover { background: #d7d7d7; }
#nav li li :link, #nav li li :visited { color: #333; display: block;
- text-decoration: none;
+ overflow: hidden; text-decoration: none; text-overflow: ellipsis;
}
#nav li li :link:hover, #nav li li :visited:hover { color: #000; }
#nav li li :link:focus, #nav li li :visited:focus { outline: none; }
@@ -185,8 +185,8 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
color: #fff;
}
#nav li button { background: transparent 0 0 no-repeat; border: none;
- cursor: pointer; width: 15px; height: 15px; margin-left: .5em;
- vertical-align: top;
+ cursor: pointer; width: 15px; height: 15px; margin-left: -20px;
+ position: absolute; vertical-align: top;
}
#nav li li:hover button.remove {
background-image: url(../image/delete-mini.png);