mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 21:44:22 -04:00
Minor changes.
This commit is contained in:
parent
e9aa3b8743
commit
4a69e639b5
2 changed files with 4 additions and 5 deletions
|
@ -37,16 +37,14 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
|
|||
|
||||
function cropSize(size, min, max) {
|
||||
|
||||
min = min || 4;
|
||||
max = max || 2048;
|
||||
return Math.min(max, Math.max(min, size));
|
||||
}
|
||||
|
||||
function applyCssSizes(size) {
|
||||
|
||||
var dsize = cropSize(size, 10, 80);
|
||||
var dsize = cropSize(size, 20, 80);
|
||||
var gsize = cropSize(size, 40, 150);
|
||||
var isize = cropSize(size, 80);
|
||||
var isize = cropSize(size, 80, 2000);
|
||||
var ilsize = Math.round(isize*4/3);
|
||||
var rules = [
|
||||
'#view.view-details .item .label { line-height: ' + (dsize+14) + 'px !important; }',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue