diff --git a/static/js/info.js b/static/js/info.js index f0c7162..8d45d67 100644 --- a/static/js/info.js +++ b/static/js/info.js @@ -44,7 +44,19 @@ oml.ui.info = function() { src: '/' + id + '/' + ui.icons + '128.jpg?' + data.modified }) - .css({margin: '16px 0 8px 0'}) + .css({ + margin: '16px 0 8px 0', + height: '128px' + }) + .bind({ + load: function() { + if (data.coverRatio > 1) { + $(this).css({ + height: (128 / data.coverRatio) + 'px' + }); + } + } + }) .appendTo(that); $('
') .addClass('OxSelectable')