[wp-trac] [WordPress Trac] #22554: New media: Long file names overflow container

WordPress Trac noreply at wordpress.org
Sat Nov 24 22:53:32 UTC 2012


#22554: New media: Long file names overflow container
--------------------------+--------------------
 Reporter:  johnbillion   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by GregLone):

 Hello.[[BR]]

 ''includes/css/media-views.css - line 561:''
 {{{
 .attachment .filename {
         /*...*/
         overflow: hidden;
         text-overflow: ellipsis;
 }
 }}}
 This works, but imho this is not the best thing to do because we can see
 only 10 characters at best. I think this is a better way:
 {{{
 .attachment .filename {
         /*...*/
         overflow: hidden;
         word-wrap: break-word;
         max-height: 99px;
 }
 }}}
 This way we can see longer file names. (the max-height is for veeeeeery
 long file names)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22554#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list