| Index: trunk/phase3/skins/common/shared.css |
| — | — | @@ -561,6 +561,11 @@ |
| 562 | 562 | margin: 2px; |
| 563 | 563 | } |
| 564 | 564 | |
| | 565 | +li.gallerybox div.thumb img { |
| | 566 | + display: block; |
| | 567 | + margin: 0 auto; |
| | 568 | +} |
| | 569 | + |
| 565 | 570 | div.gallerytext { |
| 566 | 571 | overflow: hidden; |
| 567 | 572 | font-size: 94%; |
| Index: trunk/phase3/includes/ImageGallery.php |
| — | — | @@ -281,10 +281,7 @@ |
| 282 | 282 | $thumbhtml = "\n\t\t\t" . '<div style="height: ' . ( self::THUMB_PADDING + $this->mHeights ) . 'px;">' |
| 283 | 283 | . htmlspecialchars( $img->getLastError() ) . '</div>'; |
| 284 | 284 | } else { |
| 285 | | - # We get layout problems with the margin, if the image is smaller |
| 286 | | - # than the line-height (17), so we add less margin in these cases. |
| 287 | | - $minThumbHeight = $thumb->height > 17 ? $thumb->height : 17; |
| 288 | | - $vpad = ( self::THUMB_PADDING + $this->mHeights - $minThumbHeight ) /2; |
| | 285 | + $vpad = ( self::THUMB_PADDING + $this->mHeights - $thumb->height ) /2; |
| 289 | 286 | |
| 290 | 287 | $imageParameters = array( |
| 291 | 288 | 'desc-link' => true, |