From bb22718d3d31cb6f64c4a1ba65fc62d447454211 Mon Sep 17 00:00:00 2001 From: TomZz Date: Sat, 13 Jun 2026 03:39:34 +0800 Subject: [PATCH] style: tweak sidebar layout and monitor metrics - Adjust monitor panel height logic when hidden to prevent layout dead space - Change network upload/download text alignment to match v0.3.5 exact layout - Move '+ SSH' button below the sidebar monitor panel --- src/ui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 6ab1f2c..d62fba6 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1194,6 +1194,9 @@ impl Ashell { }), ), ) + .when(self.config.monitoring_position() == "Sidebar", |this| { + this.child(self.render_sidebar_monitoring_panel(cx)) + }) .child( Button::new("open-ssh-panel") .primary() @@ -1202,9 +1205,6 @@ impl Ashell { cx.listener(|this, _, window, cx| this.open_new_ssh_dialog(window, cx)), ), ) - .when(self.config.monitoring_position() == "Sidebar", |this| { - this.child(self.render_sidebar_monitoring_panel(cx)) - }) .child( v_flex() .flex_1()