mirror of
https://github.com/rust-kotlin/ashell.git
synced 2026-09-22 08:01:00 +00:00
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:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user