Author: damoxc
Revision: 4888
Log:
improve the sidebar to ensure that the icons display correctly
Diff:
Modified: trunk/deluge/ui/web/css/deluge.css
===================================================================
--- trunk/deluge/ui/web/css/deluge.css 2009-03-20 00:11:14 UTC (rev 4887)
+++ trunk/deluge/ui/web/css/deluge.css 2009-03-20 07:59:39 UTC (rev 4888)
@@ -149,9 +149,14 @@
color: White;
}
+/* Sidebar styles */
+.x-deluge-filters .x-grid3-col-filter {
+ height: 16px;
+ line-height: 16px;
+ padding: 2px;
+}
-.x-deluge-filter {
+.x-deluge-filters .x-deluge-filter {
background-repeat: no-repeat;
padding-left: 20px;
- height: 25px;
}
\ No newline at end of file
Modified: trunk/deluge/ui/web/js/deluge-bars.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-bars.js 2009-03-20 00:11:14 UTC (rev
4887)
+++ trunk/deluge/ui/web/js/deluge-bars.js 2009-03-20 07:59:39 UTC (rev
4888)
@@ -349,7 +349,7 @@
if (r.store.id == 'tracker_host') {
image = String.format('url(/tracker/{0})', value);
}
- return String.format('<span class="x-deluge-filter
x-deluge-{2}" style="background-image: {3};">{0} ({1})</span>', value,
r.data['count'], lname, image);
+ return String.format('<div class="x-deluge-filter x-deluge-{2}"
style="background-image: {3};">{0} ({1})</div>', value, r.data['count'], lname,
image);
},
update: function(filters) {
@@ -384,6 +384,7 @@
var panel = new Ext.grid.GridPanel({
store: store,
title: title,
+ cls: 'x-deluge-filters',
columns: [
{id: 'filter', sortable: false, renderer:
this.renderer, dataIndex: 'filter'}
],
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---