Add title to assistant panel and move + to right
This commit is contained in:
parent
a011ced698
commit
d78fbbc63e
3 changed files with 19 additions and 2 deletions
|
@ -418,13 +418,25 @@ impl View for AssistantPanel {
|
|||
.aligned()
|
||||
.into_any()
|
||||
} else {
|
||||
let title = self.active_conversation_editor().map(|editor| {
|
||||
Label::new(editor.read(cx).title(cx), style.title.text.clone())
|
||||
.contained()
|
||||
.with_style(style.title.container)
|
||||
.aligned()
|
||||
});
|
||||
|
||||
Flex::column()
|
||||
.with_child(
|
||||
Flex::row()
|
||||
.with_child(
|
||||
Self::render_hamburger_button(&style.hamburger_button).aligned(),
|
||||
)
|
||||
.with_child(Self::render_plus_button(&style.plus_button).aligned())
|
||||
.with_children(title)
|
||||
.with_child(
|
||||
Self::render_plus_button(&style.plus_button)
|
||||
.aligned()
|
||||
.flex_float(),
|
||||
)
|
||||
.contained()
|
||||
.with_style(theme.workspace.tab_bar.container)
|
||||
.expanded()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue