Comments: Fix inline edit/reply on small screens.

props ocean90, SergeyBiryukov.
fixes #33596.

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


git-svn-id: http://core.svn.wordpress.org/trunk@34062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-09-13 12:47:27 +00:00
parent bd801ae5db
commit 7f772bdaff
8 changed files with 43 additions and 7 deletions

View File

@ -1825,7 +1825,8 @@ div.action-links,
text-align: right; text-align: right;
} }
#comments-form .fixed .column-author { #comments-form .fixed .column-author,
#commentsdiv .fixed .column-author {
display: none !important; display: none !important;
} }
@ -1980,6 +1981,22 @@ div.action-links,
margin: 0 0 0 6px; margin: 0 0 0 6px;
} }
#edithead .inside,
#commentsdiv #edithead .inside {
float: none;
text-align: right;
padding: 3px 5px;
}
#commentsdiv #edithead .inside input,
#edithead .inside input {
width: 100%;
}
#edithead label {
display: block;
}
#bulk-titles div { #bulk-titles div {
margin: 0.8em 0.3em; margin: 0.8em 0.3em;
} }

View File

@ -1825,7 +1825,8 @@ div.action-links,
text-align: left; text-align: left;
} }
#comments-form .fixed .column-author { #comments-form .fixed .column-author,
#commentsdiv .fixed .column-author {
display: none !important; display: none !important;
} }
@ -1980,6 +1981,22 @@ div.action-links,
margin: 0 6px 0 0; margin: 0 6px 0 0;
} }
#edithead .inside,
#commentsdiv #edithead .inside {
float: none;
text-align: left;
padding: 3px 5px;
}
#commentsdiv #edithead .inside input,
#edithead .inside input {
width: 100%;
}
#edithead label {
display: block;
}
#bulk-titles div { #bulk-titles div {
margin: 0.8em 0.3em; margin: 0.8em 0.3em;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -490,7 +490,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
?> ?>
<form method="get"> <form method="get">
<?php if ( $table_row ) : ?> <?php if ( $table_row ) : ?>
<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange"> <table style="display:none;"><tbody id="com-reply"><tr id="replyrow" class="inline-edit-row" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
<?php else : ?> <?php else : ?>
<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;"> <div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
<?php endif; ?> <?php endif; ?>

View File

@ -634,6 +634,8 @@ commentReply = {
act = 'edit' == action ? 'edit' : 'replyto'; act = 'edit' == action ? 'edit' : 'replyto';
act = t.act = act + '-comment'; act = t.act = act + '-comment';
$( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', c ).length );
$('#action', editRow).val(act); $('#action', editRow).val(act);
$('#comment_post_ID', editRow).val(post_id); $('#comment_post_ID', editRow).val(post_id);
$('#comment_ID', editRow).val(comment_id); $('#comment_ID', editRow).val(comment_id);

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34093'; $wp_version = '4.4-alpha-34094';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.