WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #22667, comment 7


Ignore:
Timestamp:
12/02/12 18:16:59 (17 months ago)
Author:
cdog
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22667, comment 7

    v2 v3  
    33I've also made some tests with attachment:22667.patch and noticed some issues. A longer date or filename is pulling the details below the thumbnail as shown in attachment:22667-issues.jpg. 
    44 
    5 A possible solution is to set a fixed width for the details element (attachment-info.width - thumbnail.max-width should be fine). This should make the details to remain aligned with the thumbnail while the longer strings will be wrapped or clipped. 
     5A possible solution is to set ~~a fixed width for the details element (attachment-info.width - thumbnail.max-width should be fine)~~ the overflow to hidden for the details element to establish a new [http://colinaarts.com/articles/the-magic-of-overflow-hidden/ block formatting context]. This should make the details to remain aligned with the thumbnail while longer strings will be wrapped or clipped inside the available space. 
    66 
    77Edit: It's just a suggestion. If the details should always stay aligned with the thumbnail setting nowrap to delete-attachment is not sufficient. Else, SergeyBiryukov's patch does the trick.