compose: Offer narrow to compose target button for private messages.

We already offer this for stream messages, but had been blocked on
adding it for private messages for visual design reasons. The dark
theme had a natural place to put this, since it had a box around the
private message recipient box; but the light theme didn't.

We add a border to the light theme private message recipient box to
allow us to add the same button to private messages, and implement
that button.

Fixes #21962.
This commit is contained in:
evykassirer
2022-09-26 12:01:43 -07:00
committed by Tim Abbott
parent 05a56fd764
commit 553723e5d4
9 changed files with 67 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ export function clear_preview_area() {
autosize.update($("#compose-textarea"));
}
export function update_fade() {
function update_fade() {
if (!compose_state.composing()) {
return;
}
@@ -103,7 +103,7 @@ export function update_fade() {
compose_fade.update_all();
}
function update_on_recipient_change() {
export function update_on_recipient_change() {
update_fade();
compose_actions.update_narrow_to_recipient_visibility();
}