assistant: Tweak tab bar layout (#15901)
- Add "New Context" button next to the hamburger - Add "History" - Allow Pane tab rendering callback to return items for both left and right side of the tab bar.  Release Notes: - N/A
This commit is contained in:
parent
bf403ca788
commit
8aa1ba8cbc
5 changed files with 48 additions and 15 deletions
|
@ -174,9 +174,9 @@ impl TerminalPanel {
|
|||
self.pane.update(cx, |pane, cx| {
|
||||
pane.set_render_tab_bar_buttons(cx, move |pane, cx| {
|
||||
if !pane.has_focus(cx) {
|
||||
return None;
|
||||
return (None, None);
|
||||
}
|
||||
h_flex()
|
||||
let right_children = h_flex()
|
||||
.gap_2()
|
||||
.children(additional_buttons.clone())
|
||||
.child(
|
||||
|
@ -232,7 +232,8 @@ impl TerminalPanel {
|
|||
})
|
||||
})
|
||||
.into_any_element()
|
||||
.into()
|
||||
.into();
|
||||
(None, right_children)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue