Remove empty message editor placeholder (#7444)
This PR removes the placeholder that we previously displayed for the chat message editor. With the changes in #7441 we can no longer hit this codepath. Release Notes: - N/A
This commit is contained in:
parent
960eaf6245
commit
0b2a9d2bea
1 changed files with 1 additions and 13 deletions
|
@ -596,19 +596,7 @@ impl Render for ChatPanel {
|
||||||
el.border_t_1().border_color(cx.theme().colors().border)
|
el.border_t_1().border_color(cx.theme().colors().border)
|
||||||
})
|
})
|
||||||
.p_2()
|
.p_2()
|
||||||
.map(|el| {
|
.child(self.message_editor.clone()),
|
||||||
if self.active_chat.is_some() {
|
|
||||||
el.child(self.message_editor.clone())
|
|
||||||
} else {
|
|
||||||
el.child(
|
|
||||||
div()
|
|
||||||
.rounded_md()
|
|
||||||
.h_6()
|
|
||||||
.w_full()
|
|
||||||
.bg(cx.theme().colors().editor_background),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
)
|
)
|
||||||
.filter(|_| self.active_chat.is_some()),
|
.filter(|_| self.active_chat.is_some()),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue