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

View File

@@ -253,7 +253,7 @@ impl RenderOnce for ResizablePanel {
div()
.id(("resizable-panel", self.panel_ix))
.flex()
.flex_grow()
.flex_grow_1()
.size_full()
.relative()
.when(self.axis.is_vertical(), |this| {
@@ -265,7 +265,7 @@ impl RenderOnce for ResizablePanel {
// 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.
// 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| {
// 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.