mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
no clipping if the thumbnails are under 128px.
the img are centered git-svn-id: http://piwigo.org/svn/trunk@9865 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -223,8 +223,14 @@ while ($row = pwg_db_fetch_assoc($result))
|
||||
'tn_src' => $src,
|
||||
'rank' => $current_rank * 10,
|
||||
);
|
||||
$clipping[]= min($thumbnail_size[0]*0.75,$thumbnail_size[1]*0.75);
|
||||
|
||||
if ($thumbnail_size[0]<=128 and $thumbnail_size[1]<=128)
|
||||
{
|
||||
$clipping[]= min($thumbnail_size[0],$thumbnail_size[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$clipping[]= min($thumbnail_size[0]*0.75,$thumbnail_size[1]*0.75);
|
||||
}
|
||||
$current_rank++;
|
||||
}
|
||||
$clipping=array_sum($clipping)/count($clipping);
|
||||
|
||||
@@ -45,11 +45,6 @@ UL.thumbnails li.rank-of-image {
|
||||
cursor: move;
|
||||
margin: 10px;
|
||||
}
|
||||
UL.thumbnails li.rank-of-image img {
|
||||
margin: 0 20px;
|
||||
padding: 8px 2px;
|
||||
float: left;
|
||||
}
|
||||
.clipwrapper {
|
||||
position:relative;
|
||||
width: 96px;
|
||||
|
||||
Reference in New Issue
Block a user