fix: message list overflow

This commit is contained in:
2026-09-17 19:15:16 +07:00
parent 0c1c23fe9c
commit 6ff1eeddbb
3 changed files with 11 additions and 10 deletions
Generated
+8 -8
View File
@@ -1189,9 +1189,9 @@ dependencies = [
[[package]]
name = "cocoa"
version = "0.26.0"
version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2"
checksum = "ad36507aeb7e16159dfe68db81ccc27571c3ccd4b76fb2fb72fc59e7a4b1b64c"
dependencies = [
"bitflags 2.13.2",
"block",
@@ -2786,7 +2786,7 @@ dependencies = [
"anyhow",
"block",
"cbindgen",
"cocoa 0.26.0",
"cocoa 0.26.1",
"core-foundation 0.10.1",
"core-video",
"derive_more",
@@ -2916,7 +2916,7 @@ dependencies = [
"async-task",
"block",
"block2 0.6.2",
"cocoa 0.26.0",
"cocoa 0.26.1",
"core-foundation 0.10.1",
"core-foundation-sys",
"core-graphics 0.24.0",
@@ -7973,9 +7973,9 @@ checksum = "70ba288e709927c043cbe476718d37be306be53fb1fafecd0dbe36d072be2580"
[[package]]
name = "unicode-ident"
version = "1.0.25"
version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab72a15cf68d77cb0987d3684aa8a45c5ef827e8cb49ee2f30bfd7ba2feb519f"
checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
[[package]]
name = "unicode-linebreak"
@@ -7994,9 +7994,9 @@ dependencies = [
[[package]]
name = "unicode-properties"
version = "0.1.3"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e70f2a8b45122e719eb623c01822704c4e0907e7e426a05927e1a1cfff5b75d0"
checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d"
[[package]]
name = "unicode-script"
+1
View File
@@ -2052,6 +2052,7 @@ impl Render for ChatPanel {
.child(
v_flex()
.flex_1()
.min_h_0()
.relative()
.map(|this| {
if self.messages.is_empty() {
+2 -2
View File
@@ -139,13 +139,14 @@ impl Render for GreeterPanel {
v_flex()
.gap_2()
.w_full()
.justify_start()
.items_start()
.child(
Button::new("profile")
.icon(Icon::new(IconName::Profile))
.label("Update profile")
.ghost()
.small()
.justify_start()
.on_click(cx.listener(move |this, _, window, cx| {
this.add_profile_panel(window, cx)
})),
@@ -156,7 +157,6 @@ impl Render for GreeterPanel {
.label("Change theme")
.ghost()
.small()
.justify_start()
.on_click(cx.listener(move |_, _, _, cx| {
cx.dispatch_action(&Command::ToggleTheme);
})),