Make WordPress Core

Ticket #63239: 63239.padding-plus-word-wrap.patch

File 63239.padding-plus-word-wrap.patch, 1.3 KB (added by sabernhardt, 9 months ago)

edits padding and margin to show the full focus outline and to give slight padding on the right, and also assigns classes to wrap long words

  • src/wp-admin/async-upload.php

     
    6060                                        $title    = $post->post_title ? $post->post_title : wp_basename( $file );
    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
    6767                                                        if ( current_user_can( 'edit_post', $id ) ) {
  • src/wp-admin/css/media.css

     
    167167}
    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
    175175.media-item .pinkynail {