WordPress.org

Make WordPress Core

Changeset 32688


Ignore:
Timestamp:
06/03/2015 03:22:14 PM (4 years ago)
Author:
helen
Message:

Media list view: ensure thumbnails are appropriately sized and constrained.

see #29993.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r32687 r32688  
    306306    top: 8px; /* match cell padding */
    307307    left: 10px; /* match cell padding */
     308}
     309
     310table.media .column-title .media-icon img {
     311    max-width: 60px;
     312    height: auto;
    308313}
    309314
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r32687 r32688  
    366366                echo "<div class='media-icon {$mime}-icon'>";
    367367
    368                 if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) {
     368                if ( $thumb = wp_get_attachment_image( $post->ID, array( 60, 60 ), true ) ) {
    369369                    if ( $this->is_trash || ! $user_can_edit ) {
    370370                        echo $thumb;
Note: See TracChangeset for help on using the changeset viewer.