From 1b9df271364d0742c9eb5f506740339dcfdab0f2 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 15 Nov 2014 11:16:09 +0000 Subject: [PATCH] fix #2558 (list icon border-radius) --- static/js/info.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/js/info.js b/static/js/info.js index 8d54ba1dd..a87e25938 100644 --- a/static/js/info.js +++ b/static/js/info.js @@ -329,12 +329,14 @@ pandora.ui.listInfo = function() { } function getIconCSS() { - var size = Math.round(pandora.user.ui.sidebarSize / 2); - return { + var list = pandora.user.ui.section == 'items' ? pandora.user.ui._list : ui[folderItem.toLowerCase()], + size = Math.round(pandora.user.ui.sidebarSize / 2); + return Ox.extend({ width: size + 'px', - height: size + 'px', + height: size + 'px' + }, list ? { borderRadius: Math.round(size / 4) + 'px' - }; + } : {}); } that.resizeInfo = function() {