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