debugger: Fix zoomed panel size regression (#33746)

Co-authored-by: Cole <cole@zed.dev>

Release Notes:

- N/A

Co-authored-by: Cole <cole@zed.dev>
This commit is contained in:
Piotr Osiewicz 2025-07-02 01:17:55 +02:00 committed by GitHub
parent 3f0f316f4d
commit faca128304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1313,11 +1313,13 @@ impl Render for DebugPanel {
} }
v_flex() v_flex()
.when_else( .when(!self.is_zoomed, |this| {
self.position(window, cx) == DockPosition::Bottom, this.when_else(
|this| this.max_h(self.size), self.position(window, cx) == DockPosition::Bottom,
|this| this.max_w(self.size), |this| this.max_h(self.size),
) |this| this.max_w(self.size),
)
})
.size_full() .size_full()
.key_context("DebugPanel") .key_context("DebugPanel")
.child(h_flex().children(self.top_controls_strip(window, cx))) .child(h_flex().children(self.top_controls_strip(window, cx)))