Media: Prevent the compat view from wrapping around the attachment details. Allow the filename to break-word. props koopersmith, SergeyBiryukov. fixes #22667.

git-svn-id: http://core.svn.wordpress.org/trunk@22983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-03 04:15:32 +00:00
parent 787e7f8347
commit db0ef72326
3 changed files with 8 additions and 11 deletions

View File

@ -258,8 +258,7 @@
margin-left: 10px; margin-left: 10px;
} }
.attachment-info .details, .attachment-info .details {
.attachment-info .compat-meta {
float: right; float: right;
} }

View File

@ -1173,6 +1173,7 @@
.attachment-info .filename { .attachment-info .filename {
font-weight: bold; font-weight: bold;
color: #464646; color: #464646;
word-wrap: break-word;
} }
.attachment-info .thumbnail { .attachment-info .thumbnail {
@ -1216,10 +1217,7 @@
.attachment-info .details { .attachment-info .details {
float: left; float: left;
font-size: 12px; font-size: 12px;
} max-width: 100%;
.attachment-info .compat-meta {
float: left;
} }
.attachment-info .delete-attachment a { .attachment-info .delete-attachment a {

View File

@ -1685,11 +1685,11 @@ function wp_print_media_templates() {
<a href="#"><?php _e( 'Delete Permanently' ); ?></a> <a href="#"><?php _e( 'Delete Permanently' ); ?></a>
</div> </div>
<# } #> <# } #>
</div> <div class="compat-meta">
<div class="compat-meta"> <# if ( data.compat && data.compat.meta ) { #>
<# if ( data.compat && data.compat.meta ) { #> {{{ data.compat.meta }}}
{{{ data.compat.meta }}} <# } #>
<# } #> </div>
</div> </div>
</div> </div>