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:
parent
3189d79f46
commit
5b327853e4
|
@ -3396,6 +3396,10 @@ table.fixed {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed .column-comment .comment-author {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.fixed .column-response,
|
.fixed .column-response,
|
||||||
.fixed .column-categories,
|
.fixed .column-categories,
|
||||||
.fixed .column-tags,
|
.fixed .column-tags,
|
||||||
|
@ -8601,7 +8605,13 @@ p.pagenav {
|
||||||
font-weight: 600;
|
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;
|
float: right;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
@ -12262,6 +12272,10 @@ li#wp-admin-bar-menu-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed .column-comment .comment-author {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
/* Posts */
|
/* Posts */
|
||||||
.column-title {
|
.column-title {
|
||||||
width: 85%;
|
width: 85%;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3396,6 +3396,10 @@ table.fixed {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed .column-comment .comment-author {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.fixed .column-response,
|
.fixed .column-response,
|
||||||
.fixed .column-categories,
|
.fixed .column-categories,
|
||||||
.fixed .column-tags,
|
.fixed .column-tags,
|
||||||
|
@ -8601,7 +8605,13 @@ p.pagenav {
|
||||||
font-weight: 600;
|
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;
|
float: left;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
@ -12262,6 +12272,10 @@ li#wp-admin-bar-menu-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed .column-comment .comment-author {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
/* Posts */
|
/* Posts */
|
||||||
.column-title {
|
.column-title {
|
||||||
width: 85%;
|
width: 85%;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -390,6 +390,10 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
$delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" );
|
$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">';
|
echo '<div class="submitted-on">';
|
||||||
/* translators: 2: comment date, 3: comment time */
|
/* translators: 2: comment date, 3: comment time */
|
||||||
printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ), $comment_url,
|
printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ), $comment_url,
|
||||||
|
|
Loading…
Reference in New Issue