Make the height of the editor in Review Box smaller (4 lines as GitHub) (#18319)
And shrink the height of Dropzone.
This commit is contained in:
parent
9dcf0bf6ec
commit
11b4827791
3 changed files with 20 additions and 11 deletions
|
@ -459,7 +459,9 @@ export function initRepoPullRequestReview() {
|
|||
const $reviewBox = $('.review-box');
|
||||
if ($reviewBox.length === 1) {
|
||||
(async () => {
|
||||
await createCommentEasyMDE($reviewBox.find('textarea'));
|
||||
// the editor's height is too large in some cases, and the panel cannot be scrolled with page now because there is `.repository .diff-detail-box.sticky { position: sticky; }`
|
||||
// the temporary solution is to make the editor's height smaller (about 4 lines). GitHub also only show 4 lines for default. We can improve the UI (including Dropzone area) in future
|
||||
await createCommentEasyMDE($reviewBox.find('textarea'), {minHeight: '80px'});
|
||||
initCompImagePaste($reviewBox);
|
||||
})();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue