From cd061f563f3f5132ae99c8896d2515c3b594a432 Mon Sep 17 00:00:00 2001 From: William Lachance Date: Sat, 19 Aug 2017 14:57:07 -0400 Subject: Bug 1389111 - Address complaints with autosized comments --- extensions/BugModal/web/bug_modal.css | 4 +++- extensions/BugModal/web/bug_modal.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css index 36e556efe..e148c205b 100644 --- a/extensions/BugModal/web/bug_modal.css +++ b/extensions/BugModal/web/bug_modal.css @@ -714,8 +714,10 @@ body.platform-Win32 .comment-text, body.platform-Win64 .comment-text { box-sizing: border-box !important; margin: 0 0 1em; max-width: 1024px; +} + +.autosized-comment { max-height: 400px; - resize: vertical; } #comment-preview { diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index 5ca0148e7..ab479d07e 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -876,6 +876,7 @@ $(function() { }); if (BUGZILLA.user.settings.autosize_comments) { + $('#comment').addClass('autosized-comment'); autosize($('#comment')); } else if (BUGZILLA.user.settings.zoom_textareas) { // add comment --> enlarge on focus -- cgit v1.2.3-24-g4f1b