WordPress.org

Make WordPress Core

Changeset 22870


Ignore:
Timestamp:
11/27/12 15:58:47 (3 years ago)
Author:
ryan
Message:

Fix overflow of long filenames in the media modal.

Props koopersmith, GregLone
fixes #22554

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/css/media-views.css

    r22869 r22870  
    570570    right: 0; 
    571571    bottom: 0; 
    572     padding: 5px 10px; 
     572    overflow: hidden; 
     573    max-height: 100%; 
     574 
     575    word-wrap: break-word; 
    573576    text-align: center; 
    574577    font-weight: bold; 
    575578    background: rgba( 255, 255, 255, 0.8 ); 
    576     box-shadow: 0 0 2px rgba( 0, 0, 0, 0.2 ); 
     579    box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); 
     580} 
     581 
     582.attachment .filename div { 
     583    padding: 5px 10px; 
    577584} 
    578585 
  • trunk/wp-includes/media.php

    r22869 r22870  
    16011601            <# } else { #> 
    16021602                <img src="{{ data.icon }}" class="icon" draggable="false" /> 
    1603                 <div class="filename">{{ data.filename }}</div> 
     1603                <div class="filename"> 
     1604                    <div>{{ data.filename }}</div> 
     1605                </div> 
    16041606            <# } #> 
    16051607 
Note: See TracChangeset for help on using the changeset viewer.