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

see #29993.

Built from https://develop.svn.wordpress.org/trunk@32688


git-svn-id: http://core.svn.wordpress.org/trunk@32658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-06-03 15:23:25 +00:00
parent 40fca44c89
commit 6f6788c4af
6 changed files with 14 additions and 4 deletions

View File

@ -307,6 +307,11 @@ table.media .column-title .media-icon {
right: 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-right: 70px; /* 60px image + margin */

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 */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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 { ?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32687';
$wp_version = '4.3-alpha-32688';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.