Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions crates/ui/src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12368,6 +12368,7 @@ impl Shell {
);
if plus_open {
let closing = self.right_plus.closing_since();
let has_chat = self.state.read(cx).selected_chat_row().is_some();
let menu = popover::popover_card(&theme)
.w(px(168.0))
.on_mouse_down_out(cx.listener(|this, _, _, cx| this.close_right_plus(cx)))
Expand All @@ -12376,6 +12377,23 @@ impl Shell {
.flex()
.flex_col()
.gap(px(2.0))
// A fresh side chat under the active conversation.
.when(has_chat, |menu| {
menu.child(
popover::menu_row(&theme, false, "right-plus-side-chat")
.id("right-plus-side-chat-row")
.on_click(cx.listener(|this, _, _, cx| {
this.create_child_chat(None, cx);
this.close_right_plus(cx);
}))
.child(
icon(icons::CHAT_ROUND_LINE)
.size(px(13.0))
.text_color(theme.text_muted),
)
.child(SharedString::from("Side chat")),
)
})
.child(
popover::menu_row(&theme, false, "right-plus-files")
.id("right-plus-files-row")
Expand Down
Loading