The comment screen hides the author column at narrow screen sizes; this adds back the author info above the comment content. Fixes #26618, props SergeyBiryukov, nacin.

Built from https://develop.svn.wordpress.org/trunk@26961


git-svn-id: http://core.svn.wordpress.org/trunk@26840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Matt Thomas 2014-01-16 20:34:10 +00:00
parent 3189d79f46
commit 5b327853e4
5 changed files with 36 additions and 4 deletions

View File

@ -3396,6 +3396,10 @@ table.fixed {
width: 10%;
}
.fixed .column-comment .comment-author {
display: none;
}
.fixed .column-response,
.fixed .column-categories,
.fixed .column-tags,
@ -8601,7 +8605,13 @@ p.pagenav {
font-weight: 600;
}
.column-author img, .column-username img {
.column-comment .comment-author {
margin-bottom: 0.6em;
}
.column-author img,
.column-username img,
.column-comment .comment-author img {
float: right;
margin-left: 10px;
margin-top: 1px;
@ -12262,6 +12272,10 @@ li#wp-admin-bar-menu-toggle {
display: none;
}
.fixed .column-comment .comment-author {
display: block;
}
/* Posts */
.column-title {
width: 85%;

File diff suppressed because one or more lines are too long

View File

@ -3396,6 +3396,10 @@ table.fixed {
width: 10%;
}
.fixed .column-comment .comment-author {
display: none;
}
.fixed .column-response,
.fixed .column-categories,
.fixed .column-tags,
@ -8601,7 +8605,13 @@ p.pagenav {
font-weight: 600;
}
.column-author img, .column-username img {
.column-comment .comment-author {
margin-bottom: 0.6em;
}
.column-author img,
.column-username img,
.column-comment .comment-author img {
float: left;
margin-right: 10px;
margin-top: 1px;
@ -12262,6 +12272,10 @@ li#wp-admin-bar-menu-toggle {
display: none;
}
.fixed .column-comment .comment-author {
display: block;
}
/* Posts */
.column-title {
width: 85%;

File diff suppressed because one or more lines are too long

View File

@ -390,6 +390,10 @@ class WP_Comments_List_Table extends WP_List_Table {
$delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" );
}
echo '<div class="comment-author">';
$this->column_author( $comment );
echo '</div>';
echo '<div class="submitted-on">';
/* translators: 2: comment date, 3: comment time */
printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ), $comment_url,