mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
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:
parent
40fca44c89
commit
6f6788c4af
@ -307,6 +307,11 @@ table.media .column-title .media-icon {
|
|||||||
right: 10px; /* match cell padding */
|
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 .media-info,
|
||||||
table.media .column-title .row-actions {
|
table.media .column-title .row-actions {
|
||||||
margin-right: 70px; /* 60px image + margin */
|
margin-right: 70px; /* 60px image + margin */
|
||||||
|
@ -307,6 +307,11 @@ table.media .column-title .media-icon {
|
|||||||
left: 10px; /* match cell padding */
|
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 .media-info,
|
||||||
table.media .column-title .row-actions {
|
table.media .column-title .row-actions {
|
||||||
margin-left: 70px; /* 60px image + margin */
|
margin-left: 70px; /* 60px image + margin */
|
||||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -365,7 +365,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
|
|||||||
|
|
||||||
echo "<div class='media-icon {$mime}-icon'>";
|
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 ) {
|
if ( $this->is_trash || ! $user_can_edit ) {
|
||||||
echo $thumb;
|
echo $thumb;
|
||||||
} else { ?>
|
} else { ?>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user