mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 14:43:55 +03:00
Sort conversations in descending chronological order
This commit is contained in:
parent
5ea5368c07
commit
c38bf2de33
@ -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)
|
||||
}
|
||||
|
@ -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" }),
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user