From 6405b50953444357e0d1248bd4caa6600aaf1476 Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 6 Mar 2009 03:20:38 +0000 Subject: [PATCH] Force-wrap comments in Recent Comments on the dashboard, expand width when no avatar, fixes #9283 git-svn-id: http://svn.automattic.com/wordpress/trunk@10729 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/dashboard.css | 10 ++++++++-- wp-admin/includes/dashboard.php | 5 ++++- wp-includes/script-loader.php | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css index fcadcf994f..119121a5fe 100644 --- a/wp-admin/css/dashboard.css +++ b/wp-admin/css/dashboard.css @@ -210,7 +210,7 @@ div.postbox div.inside { } #the-comment-list .comment-item { - padding: 1em 10px 1em 70px; + padding: 1em 10px; border-top: 1px solid; } @@ -229,7 +229,7 @@ div.postbox div.inside { #the-comment-list .comment-item .avatar { float: left; - margin-left: -60px; + margin: 0 10px 5px 0; } #the-comment-list .comment-item h4 { @@ -394,3 +394,9 @@ a.rsswidget { margin: 0 0 1.4em; line-height: 1.4em; } + +.dashboard-comment-wrap { + overflow: hidden; + word-wrap: break-word; +} + diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index e0fb26b6a0..4b127a29d1 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -550,6 +550,8 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { comment_type || 'comment' == $comment->comment_type ) : ?> + +

' . get_comment_author_link() . '', $comment_post_link." ".$comment_link, ' ' . __( '[Pending]' ) . '' ); ?>

+

$type", $comment_post_link ); ?>

@@ -581,7 +584,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
comment_author_url ); ?>
comment_approved; ?>
- +
add( 'global', '/wp-admin/css/global.css', array(), '20081226' ); $styles->add( 'media', '/wp-admin/css/media.css', array(), '20081210' ); $styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20081210' ); - $styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20081210' ); + $styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20090305' ); $styles->add( 'install', '/wp-admin/css/install.css', array(), '20081210' ); $styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20081210' ); $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20081210' );