[pdm-devel] [PATCH datacenter-manager] ui: dashboard: node panel: center text
Dominik Csapak
d.csapak at proxmox.com
Thu Nov 27 12:23:02 CET 2025
the text is centered on the other panels too (remote, subscription)
and left aligned text looks out of place here, so center it too.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
ui/src/dashboard/node_status_panel.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/src/dashboard/node_status_panel.rs b/ui/src/dashboard/node_status_panel.rs
index 032719f2..1c37c8e3 100644
--- a/ui/src/dashboard/node_status_panel.rs
+++ b/ui/src/dashboard/node_status_panel.rs
@@ -5,7 +5,7 @@ use yew::virtual_dom::{VComp, VNode};
use pdm_search::{Search, SearchTerm};
use proxmox_yew_comp::Status;
-use pwt::css::{AlignItems, FlexFit, JustifyContent};
+use pwt::css::{AlignItems, FlexFit, JustifyContent, TextAlign};
use pwt::prelude::*;
use pwt::state::SharedState;
use pwt::widget::{error_message, Column, Fa, Panel};
@@ -83,6 +83,7 @@ impl yew::Component for NodeStatusPanelComponent {
.class(FlexFit)
.class(AlignItems::Center)
.class(JustifyContent::Center)
+ .class(TextAlign::Center)
.gap(2)
.onclick(ctx.link().callback({
let search_terms = search_terms.clone();
--
2.47.3
More information about the pdm-devel
mailing list