From b47b8b14fbd1a33a00aeb11ac4e2bf6cddfb51ee Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 15 Jul 2013 12:30:41 +0000 Subject: [PATCH] fix #1513 (rights level badge too wide in context browser) --- static/js/pandora/browser.js | 2 +- static/js/pandora/clipList.js | 2 +- static/js/pandora/list.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/browser.js b/static/js/pandora/browser.js index ab44fd52..b5621159 100644 --- a/static/js/pandora/browser.js +++ b/static/js/pandora/browser.js @@ -95,7 +95,7 @@ pandora.ui.browser = function() { this, [data[sortKey]].concat(format.args || []) ); if (sortKey == 'rightslevel') { - info.css({width: '96px'}); + info.css({width: size * 0.75 + 'px'}); } } else { info = data[sortKey]; diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index 6c9fc6ac..334bf453 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -50,7 +50,7 @@ pandora.ui.clipList = function(videoRatio) { this, [data[sortKey]].concat(format.args || []) ); if (sortKey == 'rightslevel') { - info.css({width: '96px'}); + info.css({width: size * 0.75 + 'px'}); } } else { info = data[sortKey]; diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 7ba18f26..82e92f4b 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -144,7 +144,7 @@ pandora.ui.list = function() { this, [data[sortKey]].concat(format.args || []) ); if (sortKey == 'rightslevel') { - info.css({width: '96px'}); + info.css({width: size * 0.75 + 'px'}); } } else { info = data[sortKey]; @@ -202,7 +202,7 @@ pandora.ui.list = function() { this, [data[sortKey]].concat(format.args || []) ); if (sortKey == 'rightslevel') { - info.css({width: '96px'}); + info.css({width: size * 0.75 + 'px'}); } } else { info = data[sortKey]; @@ -287,7 +287,7 @@ pandora.ui.list = function() { this, [data[sortKey]].concat(format.args || []) ); if (sortKey == 'rightslevel') { - info.css({width: '96px'}); + info.css({width: size * 0.75 + 'px'}); } } else { info = data[sortKey];