From e7e2c67393f7dc3f5093df8031008b08c8774ea6 Mon Sep 17 00:00:00 2001 From: TomZz Date: Sat, 13 Jun 2026 03:01:40 +0800 Subject: [PATCH] fix: restore body_panels layout sizes on app startup - Ensure the size of the monitoring panel (the second child of body_panels) is explicitly loaded from configuration rather than falling back to the hardcoded default of 328px. --- src/ui.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index b6debf2..d1d809b 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1483,7 +1483,11 @@ impl Render for Ashell { .child(resizable_panel().child(self.render_terminal_panel(terminal_snapshot, cx))) .child( resizable_panel() - .size(px(328.)) + .size(px(self + .config + .body_panels() + .and_then(|s| s.get(1).copied()) + .unwrap_or(328.))) .size_range(px(260.)..px(1200.)) .child(monitoring_contents) )