aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2011-03-26 15:24:31 +0000
committerflop25 <flop25@piwigo.org>2011-03-26 15:24:31 +0000
commit8dc9fe6dfd8a13e56c666418df808042a4df0983 (patch)
tree46387c4f953a0802e22e8d83563834e9a91e1164 /admin
parent692abe16504d09336266ae03c749da4046962b00 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/element_set_ranks.php10
-rw-r--r--admin/themes/default/theme.css5
2 files changed, 8 insertions, 7 deletions
diff --git a/admin/element_set_ranks.php b/admin/element_set_ranks.php
index 4c16b3cba..6c7a759ad 100644
--- a/admin/element_set_ranks.php
+++ b/admin/element_set_ranks.php
@@ -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);
diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css
index 1af95df54..13c499411 100644
--- a/admin/themes/default/theme.css
+++ b/admin/themes/default/theme.css
@@ -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;