mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
compose: Redesign and relocate compose expand / collapse button.
The compose expand / collapse button is moved from the top right of the compose area to the top right corner inside the compose textarea / preview. The textarea / preview and the button area shares the same grid parent. 25px extra padding is added to and margin is subtracted from the right of the element so the button is visually inside it. It appears only on hovering the compose area, and uses a new custom icon. Fixes: #28791.
This commit is contained in:
@@ -375,8 +375,6 @@ export function make_compose_box_full_size(): void {
|
||||
// Set the `top` property of compose-box.
|
||||
set_compose_box_top(true);
|
||||
|
||||
$(".collapse_composebox_button").show();
|
||||
$(".expand_composebox_button").hide();
|
||||
$("#scroll-to-bottom-button-container").removeClass("show");
|
||||
$("textarea#compose-textarea").trigger("focus");
|
||||
}
|
||||
@@ -393,8 +391,6 @@ export function make_compose_box_original_size(): void {
|
||||
// when compose box was made full screen
|
||||
autosize($("textarea#compose-textarea"));
|
||||
|
||||
$(".collapse_composebox_button").hide();
|
||||
$(".expand_composebox_button").show();
|
||||
$("textarea#compose-textarea").trigger("focus");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user