chore: update gpui

This commit is contained in:
2026-06-01 15:28:49 +07:00
parent 4efeec08c4
commit 5d4c8634ef
8 changed files with 607 additions and 341 deletions

923
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,12 +19,12 @@ gpui_tokio = { git = "https://github.com/zed-industries/zed" }
reqwest_client = { git = "https://github.com/zed-industries/zed" } reqwest_client = { git = "https://github.com/zed-industries/zed" }
# Nostr # Nostr
nostr-lmdb = { git = "https://github.com/rust-nostr/nostr" } nostr-lmdb = { git = "https://github.com/rust-nostr/nostr", rev = "46d66396467e07c3dfb71e5102104ecb7e9c6b64" }
nostr-connect = { git = "https://github.com/rust-nostr/nostr" } nostr-connect = { git = "https://github.com/rust-nostr/nostr", rev = "46d66396467e07c3dfb71e5102104ecb7e9c6b64" }
nostr-blossom = { git = "https://github.com/rust-nostr/nostr" } nostr-blossom = { git = "https://github.com/rust-nostr/nostr", rev = "46d66396467e07c3dfb71e5102104ecb7e9c6b64" }
nostr-gossip-memory = { git = "https://github.com/rust-nostr/nostr" } nostr-gossip-memory = { git = "https://github.com/rust-nostr/nostr", rev = "46d66396467e07c3dfb71e5102104ecb7e9c6b64" }
nostr-sdk = { git = "https://github.com/rust-nostr/nostr" } nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "46d66396467e07c3dfb71e5102104ecb7e9c6b64" }
nostr = { git = "https://github.com/rust-nostr/nostr", features = [ "nip96", "nip59", "nip49", "nip44" ] } nostr = { git = "https://github.com/rust-nostr/nostr", features = [ "nip96", "nip59", "nip49", "nip44" ], rev = "46d66396467e07c3dfb71e5102104ecb7e9c6b64" }
# Others # Others
anyhow = "1.0.44" anyhow = "1.0.44"

View File

@@ -750,7 +750,7 @@ impl TabPanel {
div() div()
.id("tab-bar-empty-space") .id("tab-bar-empty-space")
.h_full() .h_full()
.flex_grow() .flex_grow_1()
.min_w_16() .min_w_16()
.when(state.droppable, |this| { .when(state.droppable, |this| {
let view = cx.entity(); let view = cx.entity();

View File

@@ -2272,7 +2272,7 @@ impl Render for InputState {
.id("input-state") .id("input-state")
.flex_1() .flex_1()
.when(self.mode.is_multi_line(), |this| this.h_full()) .when(self.mode.is_multi_line(), |this| this.h_full())
.flex_grow() .flex_grow_1()
.overflow_x_hidden() .overflow_x_hidden()
.child(TextElement::new(cx.entity().clone()).placeholder(self.placeholder.clone())) .child(TextElement::new(cx.entity().clone()).placeholder(self.placeholder.clone()))
} }

View File

@@ -498,7 +498,7 @@ where
let scroll_handle = self.scroll_handle.clone(); let scroll_handle = self.scroll_handle.clone();
v_flex() v_flex()
.flex_grow() .flex_grow_1()
.relative() .relative()
.size_full() .size_full()
.when_some(self.options.max_height, |this, h| this.max_h(h)) .when_some(self.options.max_height, |this, h| this.max_h(h))

View File

@@ -521,12 +521,14 @@ impl RenderOnce for Modal {
offset: point(px(0.), px(20.)), offset: point(px(0.), px(20.)),
blur_radius: px(25.), blur_radius: px(25.),
spread_radius: px(-5.), spread_radius: px(-5.),
inset: false,
}, },
BoxShadow { BoxShadow {
color: hsla(0., 0., 0., 0.1 * delta), color: hsla(0., 0., 0., 0.1 * delta),
offset: point(px(0.), px(8.)), offset: point(px(0.), px(8.)),
blur_radius: px(10.), blur_radius: px(10.),
spread_radius: px(-6.), spread_radius: px(-6.),
inset: false,
}, },
]; ];
this.top(y + y_offset).shadow(shadow) this.top(y + y_offset).shadow(shadow)

View File

@@ -253,7 +253,7 @@ impl RenderOnce for ResizablePanel {
div() div()
.id(("resizable-panel", self.panel_ix)) .id(("resizable-panel", self.panel_ix))
.flex() .flex()
.flex_grow() .flex_grow_1()
.size_full() .size_full()
.relative() .relative()
.when(self.axis.is_vertical(), |this| { .when(self.axis.is_vertical(), |this| {
@@ -265,7 +265,7 @@ impl RenderOnce for ResizablePanel {
// 1. initial_size is None, to use auto size. // 1. initial_size is None, to use auto size.
// 2. initial_size is Some and size is none, to use the initial size of the panel for first time render. // 2. initial_size is Some and size is none, to use the initial size of the panel for first time render.
// 3. initial_size is Some and size is Some, use `size`. // 3. initial_size is Some and size is Some, use `size`.
.when(self.initial_size.is_none(), |this| this.flex_shrink()) .when(self.initial_size.is_none(), |this| this.flex_shrink_1())
.when_some(self.initial_size, |this, initial_size| { .when_some(self.initial_size, |this, initial_size| {
// The `self.size` is None, that mean the initial size for the panel, // The `self.size` is None, that mean the initial size for the panel,
// so we need set `flex_shrink_0` To let it keep the initial size. // so we need set `flex_shrink_0` To let it keep the initial size.

View File

@@ -385,6 +385,7 @@ impl Render for Root {
blur_radius: CLIENT_SIDE_DECORATION_SHADOW / 2., blur_radius: CLIENT_SIDE_DECORATION_SHADOW / 2.,
spread_radius: px(0.), spread_radius: px(0.),
offset: point(px(0.0), px(0.0)), offset: point(px(0.0), px(0.0)),
inset: false,
}]) }])
}), }),
}) })