Make WordPress Core

Changeset 60637


Ignore:
Timestamp:
08/14/2025 11:06:45 PM (4 months ago)
Author:
joedolson
Message:

Media: Fix button focus visibility in media uploads.

Following [r58279], the focus outline on the Edit button after uploading media was partially cut off. Adjust margin and padding to ensure the outline is visible, while also supporting appropriate word wrapping on long file names.

Props dilipbheda, karthikeya01, sabernhardt, narenin, zunaid321, Marius84, ankitkumarshah, riddhidave, dilip2615, SirLouen, Presskopp, joedolson.
Fixes #63239.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r60520 r60637  
    6161                    ?>
    6262                    <div class="filename new">
    63                         <span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
    64                         <span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span>
     63                        <span class="media-list-title word-wrap-break-word"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
     64                        <span class="media-list-subtitle word-wrap-break-word"><?php echo esc_html( wp_basename( $file ) ); ?></span>
    6565                        <div class="attachment-tools">
    6666                            <?php
  • trunk/src/wp-admin/css/media.css

    r60517 r60637  
    168168
    169169.media-item .filename {
    170     padding: 14px 0;
     170    padding: 14px 2px;
    171171    overflow: hidden;
    172     margin-left: 6px;
     172    margin-left: 4px;
    173173}
    174174
Note: See TracChangeset for help on using the changeset viewer.