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
This commit is contained in:
TomZz
2026-06-13 03:39:34 +08:00
parent 4ba3000538
commit bb22718d3d
+3 -3
View File
@@ -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()