Fix overflow of long filenames in the media modal.

Props koopersmith, GregLone
fixes #22554


git-svn-id: https://develop.svn.wordpress.org/trunk@22870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-11-27 15:58:47 +00:00
parent 6a9c14ed5f
commit e0a32fe27b
2 changed files with 12 additions and 3 deletions

View File

@ -569,11 +569,18 @@ a.media-modal-close {
left: 0;
right: 0;
bottom: 0;
padding: 5px 10px;
overflow: hidden;
max-height: 100%;
word-wrap: break-word;
text-align: center;
font-weight: bold;
background: rgba( 255, 255, 255, 0.8 );
box-shadow: 0 0 2px rgba( 0, 0, 0, 0.2 );
box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 );
}
.attachment .filename div {
padding: 5px 10px;
}
.attachment-preview .thumbnail {

View File

@ -1600,7 +1600,9 @@ function wp_print_media_templates( $attachment ) {
</div>
<# } else { #>
<img src="{{ data.icon }}" class="icon" draggable="false" />
<div class="filename">{{ data.filename }}</div>
<div class="filename">
<div>{{ data.filename }}</div>
</div>
<# } #>
<# if ( data.buttons.close ) { #>