WordPress.org

Make WordPress Core

Changeset 6795


Ignore:
Timestamp:
02/12/2008 04:47:31 AM (12 years ago)
Author:
ryan
Message:

Multimedia uploader styling from andy. see #5824

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/media.css

    r6659 r6795  
    140140}
    141141.multimedia-item .thumbnail {
    142 
     142    max-width: 128px;
     143    max-height: 128px;
    143144}
    144145.multimedia-item .pinkynail {
    145146    position: absolute;
    146     top: 3px;
    147     left: 3px;
     147    top: 2px;
     148    left: 2px;
     149    height: 32px;
    148150    max-width: 40px;
    149     max-height: 40px;
    150151}
    151152.describe {
     
    167168    padding-right: 1em;
    168169}
    169 
    170 a.delete {
     170p.delete {
    171171    clear: both;
     172    margin: 0;
     173}
     174p.delete a {
     175    padding: 4px;
    172176}
    173177.describe-toggle-on, .describe-toggle-off {
  • trunk/wp-admin/includes/media.php

    r6782 r6795  
    445445    if ( empty($thumb_url) )
    446446        $thumb_url = wp_mime_type_icon( $attachment_id );
     447    if ( empty($thumb_url) && ( $post =& get_post( $attachment_id ) ) && substr($post->post_mime_type, 0, 5) == 'image' )
     448            $thumb_url = wp_get_attachment_url( $attachment_id );
    447449
    448450    $title_label = __('Title');
     
    494496    $item .= "
    495497        </fieldset>
    496         <p><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p>
     498        <p class='delete'><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p>
    497499    </div>
    498500";
Note: See TracChangeset for help on using the changeset viewer.