public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH yew-comp] tasks: make column sizes a bit more dynamic
@ 2025-01-23 14:41 Dominik Csapak
  2025-01-23 14:41 ` [pdm-devel] [PATCH datacenter-manager 1/2] ui: remote selector: update remotes when context changes Dominik Csapak
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dominik Csapak @ 2025-01-23 14:41 UTC (permalink / raw)
  To: pdm-devel

make the user and status relative in size to the desription
(while keeping the current size as minimum)

This makes it more usable by default when those fields contain longer
text.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/tasks.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tasks.rs b/src/tasks.rs
index 1b65c8e..9518313 100644
--- a/src/tasks.rs
+++ b/src/tasks.rs
@@ -126,17 +126,17 @@ impl ProxmoxTasks {
                     })
                     .into(),
                 DataTableColumn::new(tr!("User name"))
-                    .width("150px")
+                    .width("minmax(150px, 1fr)")
                     .render(|item: &TaskListItem| {
                         html! {&item.user}
                     })
                     .into(),
                 DataTableColumn::new(tr!("Description"))
-                    .flex(1)
+                    .flex(4)
                     .render(move |item: &TaskListItem| html! {format_upid(&item.upid)})
                     .into(),
                 DataTableColumn::new(tr!("Status"))
-                    .width("200px")
+                    .width("minmax(200px, 1fr)")
                     .render(|item: &TaskListItem| {
                         let text = item.status.as_deref().unwrap_or("");
                         html! {text}
-- 
2.39.5



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-28 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-23 14:41 [pdm-devel] [PATCH yew-comp] tasks: make column sizes a bit more dynamic Dominik Csapak
2025-01-23 14:41 ` [pdm-devel] [PATCH datacenter-manager 1/2] ui: remote selector: update remotes when context changes Dominik Csapak
2025-01-23 14:41 ` [pdm-devel] [PATCH datacenter-manager 2/2] ui: remote tasks: make column sizes a bit more dynamic Dominik Csapak
2025-01-28 15:18 ` [pdm-devel] applied: [PATCH yew-comp] " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal