mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Update layout.
This commit is contained in:
parent
b390b9fc42
commit
60b81a46ea
29 changed files with 136 additions and 355 deletions
|
@ -19,11 +19,7 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
|
|||
|
||||
function adjustSpacing() {
|
||||
|
||||
var contentWidth = $('#content').width();
|
||||
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 + 4);
|
||||
// kept here for later use
|
||||
}
|
||||
|
||||
function update(mode, size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue