mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-01 02:52:50 +02:00
revert smartpocket retina aware thumbs
git-svn-id: http://piwigo.org/svn/trunk@25938 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -33,7 +33,7 @@ return '<div class="ps-toolbar-close"><div class="ps-toolbar-content"></div></di
|
||||
}(window, window.jQuery, window.Code.PhotoSwipe));
|
||||
|
||||
function set_thumbnails_width() {
|
||||
var dpr = window.devicePixelRatio>1 ? window.devicePixelRatio : 1
|
||||
var dpr = 1 //window.devicePixelRatio>1 ? window.devicePixelRatio : 1
|
||||
, nb_thumbs = Math.max(2, Math.ceil($('.thumbnails').width() / (var_thumb_width/dpr+2*5)))
|
||||
, width = Math.floor(1000000 / nb_thumbs) / 10000;
|
||||
$('.thumbnails li').css('width', width+'%');
|
||||
|
||||
Reference in New Issue
Block a user