Changeset 9865


Ignore:
Timestamp:
03/26/11 16:24:31 (9 years ago)
Author:
flop25
Message:

no clipping if the thumbnails are under 128px.
the img are centered

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_ranks.php

    r9864 r9865  
    224224                'rank'  => $current_rank * 10, 
    225225                ); 
    226         $clipping[]= min($thumbnail_size[0]*0.75,$thumbnail_size[1]*0.75); 
    227  
     226        if ($thumbnail_size[0]<=128 and $thumbnail_size[1]<=128) 
     227        { 
     228                $clipping[]= min($thumbnail_size[0],$thumbnail_size[1]); 
     229        } 
     230        else 
     231        { 
     232                $clipping[]= min($thumbnail_size[0]*0.75,$thumbnail_size[1]*0.75); 
     233        } 
    228234  $current_rank++; 
    229235} 
  • trunk/admin/themes/default/theme.css

    r9864 r9865  
    4646  margin: 10px; 
    4747} 
    48 UL.thumbnails li.rank-of-image img { 
    49   margin: 0 20px; 
    50   padding: 8px 2px; 
    51   float: left; 
    52 } 
    5348.clipwrapper { 
    5449  position:relative; 
Note: See TracChangeset for help on using the changeset viewer.