Make WordPress Core

Changeset 60266


Ignore:
Timestamp:
05/30/2025 04:24:04 PM (7 weeks ago)
Author:
audrasjb
Message:

Media: Fix overflow of long user display names on Edit Media screen.

This changeset resolves an issue where long usernames in the media uploader modal would overflow their container. By adding the dedicated word-wrap-break-word class, usernames now properly break into multiple lines.

Follow-up to [59834], [59835].

Props sainathpoojary, audrasjb, sabernhardt, renishsurani, SirLouen, valentingrenier.
Fixes #63243.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r60084 r60266  
    33383338    }
    33393339    ?>
    3340     <div class="misc-pub-section misc-pub-uploadedby">
     3340    <div class="misc-pub-section misc-pub-uploadedby word-wrap-break-word">
    33413341        <?php if ( $uploaded_by_link ) { ?>
    33423342            <?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link; ?>"><strong><?php echo $uploaded_by_name; ?></strong></a>
  • trunk/src/wp-includes/media-template.php

    r59835 r60266  
    444444                </h2>
    445445                <div class="uploaded"><strong><?php _e( 'Uploaded on:' ); ?></strong> {{ data.dateFormatted }}</div>
    446                 <div class="uploaded-by">
     446                <div class="uploaded-by word-wrap-break-word">
    447447                    <strong><?php _e( 'Uploaded by:' ); ?></strong>
    448448                        <# if ( data.authorLink ) { #>
     
    606606                        <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
    607607                            <img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />
    608                         <# } else if ( data.sizes ) { 
     608                        <# } else if ( data.sizes ) {
    609609                                if ( data.sizes.medium ) { #>
    610610                                    <img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />
Note: See TracChangeset for help on using the changeset viewer.