Style updates.

This commit is contained in:
Lars Jung 2014-11-22 01:51:12 +01:00
parent 4df73eb45c
commit 4765d31a0b
7 changed files with 27 additions and 29 deletions

View file

@ -23,7 +23,7 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
var $view = $('#view');
var itemWidth = ($view.hasClass('view-icons') || $view.hasClass('view-grid')) ? ($view.find('.item').eq(0).outerWidth(true) || 1) : 1;
$view.width(Math.floor(contentWidth / itemWidth) * itemWidth);
$view.width(Math.floor(contentWidth / itemWidth) * itemWidth + 4);
}
function update(mode, size) {