[pdm-devel] [PATCH datacenter-manager v2 9/9] ui: dashboard: guest panel: improve column widths
Dominik Csapak
d.csapak at proxmox.com
Mon Aug 25 10:58:57 CEST 2025
Giving the text much more space than the numbers is a bit counter
productive here, since the text are fixed size, but the values can get
much wider if they're large enough. With both having the same space
(flex 1), it still is perfectly visible with the minimum width of the
component.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
ui/src/dashboard/guest_panel.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/dashboard/guest_panel.rs b/ui/src/dashboard/guest_panel.rs
index 605aa5a..a52a1c6 100644
--- a/ui/src/dashboard/guest_panel.rs
+++ b/ui/src/dashboard/guest_panel.rs
@@ -81,7 +81,7 @@ fn columns(guest_type: GuestType) -> Rc<Vec<DataTableHeader<StatusRow>>> {
})
.into(),
DataTableColumn::new("text")
- .flex(5)
+ .flex(1)
.render(|item: &StatusRow| {
match item {
StatusRow::State(GuestState::Running, _) => tr!("running"),
--
2.47.2
More information about the pdm-devel
mailing list