From d8ce172716aa1fa002723294bc6e00920d038a13 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 28 Jan 2019 22:38:31 +0530 Subject: [PATCH] folder list height --- static/js/folders.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/folders.js b/static/js/folders.js index 02c74dd..f4e84a3 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -176,7 +176,8 @@ oml.ui.folders = function() { $content = oml.$ui.folder[index].$content .css({ - height: (2 + items.length) * 16 + 'px' + // user also has inbox + height: ((index ? 1 : 2) + items.length) * 16 + 'px' }); $lists.push( @@ -365,9 +366,9 @@ oml.ui.folders = function() { oml.$ui.libraryList[index].options({ items: library }); - // library + public + lists + // library + inbox + lists oml.$ui.folder[index].$content - .css({height: 16 + 16 + items.length * 16 + 'px'}); + .css({height: (index ? 16 : 32) + items.length * 16 + 'px'}); oml.$ui.folderList[index].options({ items: items })