Make WordPress Core


Ignore:
Timestamp:
07/25/2022 06:09:26 PM (2 years ago)
Author:
audrasjb
Message:

Media: Prevent URLs from overflowing their container in the media editor.

This changeset also introduces the .word-wrap-break-word class which can be used to apply word-wrap: break-word to admin elements when needed.

Props mitogh, costdev, kapilpaul, alamgircsebd, sabernhardt, anantajitjg, afercia, circlecube, SergeyBiryukov, rafiahmedd, audrasjb.
Fixes #55393.

File:
1 edited

Legend:

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

    r52196 r53777  
    439439
    440440                    <# if ( data.originalImageURL && data.originalImageName ) { #>
    441                         <?php _e( 'Original image:' ); ?>
    442                         <a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
     441                        <div class="word-wrap-break-word">
     442                            <?php _e( 'Original image:' ); ?>
     443                            <a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
     444                        </div>
    443445                    <# } #>
    444446                <# } #>
     
    662664
    663665                    <# if ( data.originalImageURL && data.originalImageName ) { #>
    664                         <?php _e( 'Original image:' ); ?>
    665                         <a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
     666                        <div class="word-wrap-break-word">
     667                            <?php _e( 'Original image:' ); ?>
     668                            <a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
     669                        </div>
    666670                    <# } #>
    667671
Note: See TracChangeset for help on using the changeset viewer.