Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update conversation item rendering

Nate Butler49502af4d3a6
diff --git a/crates/assistant2/src/assistant_panel.rs b/crates/assistant2/src/assistant_panel.rs
index 79ebb6602d7..4c1abbe4b8b 100644
--- a/crates/assistant2/src/assistant_panel.rs
+++ b/crates/assistant2/src/assistant_panel.rs
@@ -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<()>> {