mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
Update conversation item rendering
This commit is contained in:
parent
91b65958a7
commit
49502af4d3
@ -1020,10 +1020,18 @@ impl AssistantPanel {
|
||||
this.open_conversation(path.clone(), cx)
|
||||
.detach_and_log_err(cx)
|
||||
}))
|
||||
.child(Label::new(
|
||||
conversation.mtime.format("%F %I:%M%p").to_string(),
|
||||
))
|
||||
.child(Label::new(conversation.title.clone()))
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.flex_1()
|
||||
.gap_2()
|
||||
.child(
|
||||
Label::new(conversation.mtime.format("%F %I:%M%p").to_string())
|
||||
.color(Color::Muted)
|
||||
.size(LabelSize::Small),
|
||||
)
|
||||
.child(Label::new(conversation.title.clone()).size(LabelSize::Small)),
|
||||
)
|
||||
}
|
||||
|
||||
fn open_conversation(&mut self, path: PathBuf, cx: &mut ViewContext<Self>) -> Task<Result<()>> {
|
||||
|
Loading…
Reference in New Issue
Block a user