Make WordPress Core

Changes between Initial Version and Version 6 of Ticket #17424


Ignore:
Timestamp:
08/06/2011 08:14:42 AM (13 years ago)
Author:
SergeyBiryukov
Comment:

The original screenshots are now gone, so I've uploaded the new ones to make the bug understandable again and translated the description into English. Also refreshed the patch to include proper path.

We already have word-wrap: break-word; for .dashboard-comment-wrap, introduced in #9283.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17424

    • Property Summary changed from Length text in widget to Long text in Recent Drafts widget
  • Ticket #17424 – Description

    initial v6  
    1 В стандартном виджете Recent Drafts есть небольшой баг. Если заголовок длинный (всякое бывает), то текст начинает выходить за его рамки, что не очень красиво:
    2 [[Image(http://clip2net.com/clip/m28612/1305313686-clip-9kb.png)]]
     1Recent Drafts widget has a small bug. If a post title is too long (you never can tell), then it goes out of the widget box:
     2[attachment:17424-before.png]
    33
    4 Кстати, данная проблема во всех версиях. Для её решения достаточно в ''wp-admin\css\dashboard.css'' сделать небольшие изменения:
     4This problem exists in all recent versions. We can fix it with some changes to `wp-admin/css/dashboard.css`:
     5{{{
     6#dashboard_recent_drafts h4 {
     7        line-height: 1.7em;
     8        word-wrap: break-word;
     9}
    510
    6 #dashboard_recent_drafts h4 {line-height:1.7em; word-wrap: break-word;}
     11#dashboard_recent_drafts p {
     12        margin: 0;
     13        padding: 0;
     14        word-wrap: break-word;
     15}
     16}}}
    717
    8 #dashboard_recent_drafts p {margin:0;padding:0; word-wrap: break-word;}
    9 
    10 Результат будет намного лучше:
    11 [[Image(http://clip2net.com/clip/m28612/1305313959-clip-9kb.png)]]
     18The result would be much better:
     19[attachment:17424-after.png]
    1220
    1321Why not fix it? ))