Media: Don't indent action links if there is no media icon.

See #32254.



git-svn-id: https://develop.svn.wordpress.org/trunk@33269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2015-07-14 17:45:55 +00:00
parent 8ff5bc6f53
commit 32bcd95e37
2 changed files with 4 additions and 2 deletions

View File

@ -364,7 +364,7 @@ table.media .column-title .media-icon img {
vertical-align: top; /* Remove descender white-space. */
}
table.media .column-title .row-actions {
table.media .column-title .has-media-icon ~ .row-actions {
margin-left: 70px; /* 60px image + margin */
}

View File

@ -347,8 +347,10 @@ class WP_Media_List_Table extends WP_List_Table {
$link_end = '</a>';
}
$class = $thumb ? ' class="has-media-icon"' : '';
?>
<strong>
<strong<?php echo $class; ?>>
<?php echo $link_start; ?>
<?php if ( $thumb ) : ?>
<span class="media-icon <?php echo sanitize_html_class( $mime . '-icon' ); ?>"><?php echo $thumb; ?></span>