diff --git a/static/js/pandora/filter.js b/static/js/pandora/filter.js index ddddb045c..77c63c5bd 100644 --- a/static/js/pandora/filter.js +++ b/static/js/pandora/filter.js @@ -35,7 +35,7 @@ pandora.ui.filter = function(id) { .addClass('flagname') .css({ float: 'left', - width: pandora.user.ui.filterSizes[i] - 64 - Ox.UI.SCROLLBAR_SIZE, + width: pandora.user.ui.filterSizes[i] - 68 - Ox.UI.SCROLLBAR_SIZE, textOverflow: 'ellipsis', overflowX: 'hidden' }) @@ -46,15 +46,18 @@ pandora.ui.filter = function(id) { operator: filter.type == 'string' ? '+' : '-', title: title, visible: true, - width: pandora.user.ui.filterSizes[i] - 40 - Ox.UI.SCROLLBAR_SIZE + width: pandora.user.ui.filterSizes[i] - 44 - Ox.UI.SCROLLBAR_SIZE }, { align: 'right', + format: function(value) { + return Ox.formatNumber(value); + }, id: 'items', operator: '-', title: '#', visible: true, - width: 40 + width: 44 } ], columnsVisible: true, diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index c545fd703..0af3b472f 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1084,9 +1084,9 @@ pandora.resizeFilters = function(width) { .size(0, pandora.user.ui.filterSizes[1]) .size(2, pandora.user.ui.filterSizes[3]); pandora.$ui.filters.forEach(function($list, i) { - $list.resizeColumn('name', pandora.user.ui.filterSizes[i] - 40 - Ox.UI.SCROLLBAR_SIZE); + $list.resizeColumn('name', pandora.user.ui.filterSizes[i] - 44 - Ox.UI.SCROLLBAR_SIZE); if (pandora.user.ui.showFlags) { - $list.find('.flagname').css({width: pandora.user.ui.filterSizes[i] - 64 - Ox.UI.SCROLLBAR_SIZE}) + $list.find('.flagname').css({width: pandora.user.ui.filterSizes[i] - 68 - Ox.UI.SCROLLBAR_SIZE}) } }); };