From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager 1/4] ui: views: vertically center gauge charts
Date: Fri, 29 May 2026 08:53:25 +0200 [thread overview]
Message-ID: <20260529065506.222086-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260529065506.222086-1-d.csapak@proxmox.com>
when the neighboring items in a view are taller, the gauge panels are
top-aligned. This looks better if they're centered, so to that.
Most of the other panels are centered too, with exception of the
grids/lists.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/dashboard/gauge_panel.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/src/dashboard/gauge_panel.rs b/ui/src/dashboard/gauge_panel.rs
index 3c03173e..24d0f323 100644
--- a/ui/src/dashboard/gauge_panel.rs
+++ b/ui/src/dashboard/gauge_panel.rs
@@ -153,6 +153,8 @@ pub fn create_gauge_panel(
};
Row::new()
+ .flex(1.0)
+ .class(css::AlignItems::Center)
.padding(4)
.with_optional_child(cpu.map(|(used, total)| {
let pct = if total == 0.0 { 0.0 } else { used / total };
--
2.47.3
next prev parent reply other threads:[~2026-05-29 6:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 6:53 [PATCH datacenter-manager 0/4] ui: dashboard improvements Dominik Csapak
2026-05-29 6:53 ` Dominik Csapak [this message]
2026-05-29 6:53 ` [PATCH datacenter-manager 2/4] ui: renderer: cleanup import structure Dominik Csapak
2026-05-29 6:53 ` [PATCH datacenter-manager 3/4] ui: factor out the 'empty_state' render helper Dominik Csapak
2026-05-29 10:11 ` Thomas Lamprecht
2026-05-29 6:53 ` [PATCH datacenter-manager 4/4] ui: dashboard: show special empty state when no remotes are configured Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260529065506.222086-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox