Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Sort conversations in descending chronological order
Antonio Scandurrac38bf2de333f
diff --git a/crates/ai/src/ai.rs b/crates/ai/src/ai.rsindex c1e6a4c5693..812fb051213 100644--- a/crates/ai/src/ai.rs+++ b/crates/ai/src/ai.rs@@ -11,6 +11,7 @@ use gpui::AppContext;use regex::Regex;use serde::{Deserialize, Serialize};use std::{+ cmp::Reverse,fmt::{self, Display},path::PathBuf,sync::Arc,@@ -97,6 +98,7 @@ impl SavedConversationMetadata {});}}+ conversations.sort_unstable_by_key(|conversation| Reverse(conversation.mtime));Ok(conversations)}diff --git a/styles/src/styleTree/assistant.ts b/styles/src/styleTree/assistant.tsindex 942b97a2325..abdd55818b8 100644--- a/styles/src/styleTree/assistant.ts+++ b/styles/src/styleTree/assistant.ts@@ -75,6 +75,7 @@ export default function assistant(colorScheme: ColorScheme) {container: interactive({base: {background: background(layer, "on"),+ padding: { top: 4, bottom: 4 }},state: {hovered: {@@ -87,7 +88,7 @@ export default function assistant(colorScheme: ColorScheme) {...text(layer, "sans", "default", { size: "xs" }),},title: {- margin: { left: 8 },+ margin: { left: 16 },...text(layer, "sans", "default", { size: "sm", weight: "bold" }),}},