[wp-trac] [WordPress Trac] #17424: Long text in Recent Drafts widget (was: Length text in widget)

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 6 08:14:42 UTC 2011


#17424: Long text in Recent Drafts widget
--------------------------+------------------------------
 Reporter:  Lardjo        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  3.2
 Severity:  trivial       |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Old description:

> В стандартном виджете Recent Drafts есть небольшой баг. Если заголовок
> длинный (всякое бывает), то текст начинает выходить за его рамки, что не
> очень красиво:
> [[Image(http://clip2net.com/clip/m28612/1305313686-clip-9kb.png)]]
>
> Кстати, данная проблема во всех версиях. Для её решения достаточно в
> ''wp-admin\css\dashboard.css'' сделать небольшие изменения:
>
> #dashboard_recent_drafts h4 {line-height:1.7em; word-wrap: break-word;}
>
> #dashboard_recent_drafts p {margin:0;padding:0; word-wrap: break-word;}
>
> Результат будет намного лучше:
> [[Image(http://clip2net.com/clip/m28612/1305313959-clip-9kb.png)]]
>
> Why not fix it? ))

New description:

 Recent 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:
 [attachment:17424-before.png]

 This problem exists in all recent versions. We can fix it with some
 changes to `wp-admin/css/dashboard.css`:
 {{{
 #dashboard_recent_drafts h4 {
         line-height: 1.7em;
         word-wrap: break-word;
 }

 #dashboard_recent_drafts p {
         margin: 0;
         padding: 0;
         word-wrap: break-word;
 }
 }}}

 The result would be much better:
 [attachment:17424-after.png]

 Why not fix it? ))

--

Comment (by SergeyBiryukov):

 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.

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


More information about the wp-trac mailing list