From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id D86EE1FF14C for ; Fri, 29 May 2026 08:55:40 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B60A624A2; Fri, 29 May 2026 08:55:40 +0200 (CEST) From: Dominik Csapak 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 Message-ID: <20260529065506.222086-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260529065506.222086-1-d.csapak@proxmox.com> References: <20260529065506.222086-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.049 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: WBIFBF3WSQB2IETDIXWNZYEMPHTBMMVE X-Message-ID-Hash: WBIFBF3WSQB2IETDIXWNZYEMPHTBMMVE X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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