mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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:
parent
8ff5bc6f53
commit
32bcd95e37
@ -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 */
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user