feat: Redesign New Chat (#31)

* make subject is optional

* redesign

* search

* fix

* adjust
This commit is contained in:
reya
2025-05-12 20:46:01 +07:00
committed by GitHub
parent 2f83b5091e
commit 4e24061817
32 changed files with 580 additions and 367 deletions

View File

@@ -286,10 +286,10 @@ where
}
}
fn set_loading(&mut self, loading: bool, window: &mut Window, cx: &mut Context<Self>) {
fn set_loading(&mut self, loading: bool, _window: &mut Window, cx: &mut Context<Self>) {
self.loading = loading;
if let Some(input) = &self.query_input {
input.update(cx, |input, cx| input.set_loading(loading, window, cx))
input.update(cx, |input, cx| input.set_loading(loading, cx))
}
cx.notify();
}

View File

@@ -130,7 +130,7 @@ impl RenderOnce for ListItem {
let is_active = self.selected || self.confirmed;
self.base
.text_color(cx.theme().text_muted)
.text_color(cx.theme().text)
.relative()
.items_center()
.justify_between()
@@ -147,7 +147,7 @@ impl RenderOnce for ListItem {
})
.when(is_active, |this| this.bg(cx.theme().element_active))
.when(!is_active && !self.disabled, |this| {
this.hover(|this| this.bg(cx.theme().surface_background))
this.hover(|this| this.bg(cx.theme().elevated_surface_background))
})
// Mouse enter
.when_some(self.on_mouse_enter, |this, on_mouse_enter| {