Skip to content

Commit d42962b

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59835 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cc82ccd commit d42962b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/wp-includes/css/media-views.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,6 @@
14211421

14221422
.upload-errors .upload-error-filename {
14231423
font-weight: 600;
1424-
word-break: break-all;
14251424
}
14261425

14271426
.upload-errors .upload-error-message {

src/wp-includes/media-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ function wp_print_media_templates() {
356356

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>
362362

0 commit comments

Comments
 (0)