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.
This commit is contained in:
TomZz
2026-06-13 03:01:40 +08:00
parent 47b03510b2
commit e7e2c67393
+5 -1
View File
@@ -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)
)