Hide the chat message editor when there is no active chat (#7441)

This PR makes it so the chat message editor is hidden when not in an
active chat.

Release Notes:

- Changed the chat message editor to be hidden when not in an active
chat.
This commit is contained in:
Marshall Bowers 2024-02-06 10:18:17 -05:00 committed by GitHub
parent b2ce515593
commit 56f7f18033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -589,7 +589,8 @@ impl Render for ChatPanel {
)
}
}))
.child(
.children(
Some(
h_flex()
.when(!self.is_scrolled_to_bottom, |el| {
el.border_t_1().border_color(cx.theme().colors().border)
@ -609,6 +610,8 @@ impl Render for ChatPanel {
}
}),
)
.filter(|_| self.active_chat.is_some()),
)
.into_any()
}
}