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

see #29993.


git-svn-id: https://develop.svn.wordpress.org/trunk@32688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2015-06-03 15:22:14 +00:00
parent 6c60055740
commit 2da4d61f95
2 changed files with 6 additions and 1 deletions

View File

@ -307,6 +307,11 @@ table.media .column-title .media-icon {
left: 10px; /* match cell padding */
}
table.media .column-title .media-icon img {
max-width: 60px;
height: auto;
}
table.media .column-title .media-info,
table.media .column-title .row-actions {
margin-left: 70px; /* 60px image + margin */

View File

@ -365,7 +365,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
echo "<div class='media-icon {$mime}-icon'>";
if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) {
if ( $thumb = wp_get_attachment_image( $post->ID, array( 60, 60 ), true ) ) {
if ( $this->is_trash || ! $user_can_edit ) {
echo $thumb;
} else { ?>