Skip to content

Commit

Permalink
Uploads: Use the word-wrap-break-word instead of specific CSS on `.…
Browse files Browse the repository at this point in the history
…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.




git-svn-id: https://develop.svn.wordpress.org/trunk@59835 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Feb 17, 2025
1 parent cc82ccd commit d42962b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/wp-includes/css/media-views.css
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,6 @@

.upload-errors .upload-error-filename {
font-weight: 600;
word-break: break-all;
}

.upload-errors .upload-error-message {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/media-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function wp_print_media_templates() {

<?php // Template for the uploading status errors. ?>
<script type="text/html" id="tmpl-uploader-status-error">
<span class="upload-error-filename">{{{ data.filename }}}</span>
<span class="upload-error-filename word-wrap-break-word">{{{ data.filename }}}</span>
<span class="upload-error-message">{{ data.message }}</span>
</script>

Expand Down

0 comments on commit d42962b

Please sign in to comment.