diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index dd9c293f6f..5604573cac 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -264,7 +264,8 @@ a:active { color: #00a0d2; } -a:focus { +a:focus, +a:focus .media-icon img { color: #124964; -webkit-box-shadow: 0 0 0 1px #5b9dd9, @@ -530,10 +531,6 @@ code { padding: 9px 0 22px; } -.widefat.media .check-column { - padding-top: 8px; -} - .widefat thead td.check-column, .widefat tbody th.check-column, .widefat tfoot td.check-column { @@ -2029,23 +2026,12 @@ body.iframe { /* - Only used once or twice in all of WP - deprecate for global style ------------------------------------------------------------------------------*/ -td.media-icon { +.media-icon { + width: 62px; /* icon + border */ text-align: center; - width: 80px; - padding-top: 8px; - padding-bottom: 8px; } -td.media-icon a { - display: inline-block; -} - -td.media-icon img { - display: block; - max-width: 80px; - max-height: 60px; - width: auto; - height: auto; +.media-icon img { border: 1px solid #e7e7e7; border: 1px solid rgba(0, 0, 0, 0.07); } diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index eb6692fcd0..01fd0c97b6 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -339,7 +339,6 @@ table.fixed { padding-left: 3px; } - td.column-title strong, td.plugin-title strong { display: block; @@ -353,27 +352,23 @@ td.plugin-title p { } /* Media file column */ -table.media .column-title { - position: relative; -} - table.media .column-title .media-icon { - position: absolute; - top: 8px; /* match cell padding */ - left: 10px; /* match cell padding */ + float: left; + min-height: 60px; + margin: 0 9px 0 0; } table.media .column-title .media-icon img { max-width: 60px; height: auto; + vertical-align: top; /* Remove descender white-space. */ } -table.media .column-title .media-info, table.media .column-title .row-actions { margin-left: 70px; /* 60px image + margin */ } -table.media .column-title .media-info p { +table.media .column-title .filename { margin-bottom: 0.2em; } diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index b2de73ac7f..a03f77a89a 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -338,40 +338,28 @@ class WP_Media_List_Table extends WP_List_Table { public function column_title( $post ) { list( $mime ) = explode( '/', $post->post_mime_type ); - $user_can_edit = current_user_can( 'edit_post', $post->ID ); - $att_title = _draft_or_post_title(); - ?> -
- ID, array( 60, 60 ), true, array( 'alt' => '' ) ); + $link_start = $link_end = ''; - $thumb = wp_get_attachment_image( $post->ID, array( 60, 60 ), true ); - if ( $thumb ) { - if ( $this->is_trash || ! $user_can_edit ) { - echo $thumb; - } else { ?> - ID ) && ! $this->is_trash ) { + $link_start = ''; + $link_end = ''; } ?> -
-
- - is_trash || ! $user_can_edit ) { - echo $att_title; - } else { ?> - - -

guid ); ?>

-
+ + + + + + + + + + + +

guid ); ?>