Make WordPress Core

Changeset 59835


Ignore:
Timestamp:
02/17/2025 10:56:27 PM (4 weeks ago)
Author:
audrasjb
Message:

Uploads: Use the word-wrap-break-word instead of specific CSS on .upload-error-filename.

This changeset replaces the word-break: break-all CSS declaration added to the .upload-error-filename element with the common class word-wrap-break-word, for better maintainability.

Follow-up to [59834].

Props sabernhardt.
Fixes #62980.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r59834 r59835  
    14221422.upload-errors .upload-error-filename {
    14231423    font-weight: 600;
    1424     word-break: break-all;
    14251424}
    14261425
  • trunk/src/wp-includes/media-template.php

    r59784 r59835  
    357357    <?php // Template for the uploading status errors. ?>
    358358    <script type="text/html" id="tmpl-uploader-status-error">
    359         <span class="upload-error-filename">{{{ data.filename }}}</span>
     359        <span class="upload-error-filename word-wrap-break-word">{{{ data.filename }}}</span>
    360360        <span class="upload-error-message">{{ data.message }}</span>
    361361    </script>
Note: See TracChangeset for help on using the changeset viewer.