mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
Grow the composebox when we click on it.
The idea here being: if there's only one line, it discourages me from writing a long message (and also makes me think that enter will send). (imported from commit 424d8d305d1965ce3199ce3227dac94b395945bc)
This commit is contained in:
@@ -223,6 +223,7 @@ exports.start = function (msg_type, opts) {
|
||||
} else {
|
||||
show('private', $("#" + (focus_area || 'private_message_recipient')));
|
||||
}
|
||||
$(".new_message_textarea").css("min-height", "3em");
|
||||
|
||||
if (opts.replying_to_message !== undefined) {
|
||||
do_fade(opts.replying_to_message, msg_type);
|
||||
@@ -395,6 +396,7 @@ exports.hide = function () {
|
||||
$('.message_comp').find('input, textarea, button').blur();
|
||||
$('#stream-message').hide();
|
||||
$('#private-message').hide();
|
||||
$(".new_message_textarea").css("min-height", "");
|
||||
notifications_bar.enable();
|
||||
exports.unfade_messages(true);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user