all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [PATCH yew-comp 1/2] syslog: fix toolbar spacing
@ 2025-12-17 11:10 Dominik Csapak
  2025-12-17 11:10 ` [yew-devel] [RFC PATCH yew-comp 2/2] syslog: use new DateField for selecting the date Dominik Csapak
  2025-12-17 11:34 ` [yew-devel] applied: [PATCH yew-comp 1/2] syslog: fix toolbar spacing Dietmar Maurer
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2025-12-17 11:10 UTC (permalink / raw)
  To: yew-devel

fields do have some css classes that make them problematic in pure flex
layouts. They take all the available space.

The intention here was for the fields to be right aligned, so wrap them
in a 'Container' so that works as intended.

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

diff --git a/src/syslog.rs b/src/syslog.rs
index cf274a5..5635c22 100644
--- a/src/syslog.rs
+++ b/src/syslog.rs
@@ -116,14 +116,16 @@ impl ProxmoxSyslog {
                     .with_child("Since:"),
             )
             .with_child(
-                Field::new()
-                    .label_id(self.since_label_id.clone())
-                    .input_type(InputType::DatetimeLocal)
-                    .required(true) // avoid clear button in firefox
-                    .disabled(self.active)
-                    .class("pwt-input-hide-clear-button")
-                    .on_change(ctx.link().callback(Msg::Since))
-                    .value(since),
+                Container::new().with_child(
+                    Field::new()
+                        .label_id(self.since_label_id.clone())
+                        .input_type(InputType::DatetimeLocal)
+                        .required(true) // avoid clear button in firefox
+                        .disabled(self.active)
+                        .class("pwt-input-hide-clear-button")
+                        .on_change(ctx.link().callback(Msg::Since))
+                        .value(since),
+                ),
             )
             .with_child(
                 Container::from_tag("label")
@@ -134,13 +136,15 @@ impl ProxmoxSyslog {
                     .with_child("Until:"),
             )
             .with_child(
-                Field::new()
-                    .label_id(self.until_label_id.clone())
-                    .input_type(InputType::DatetimeLocal)
-                    .required(true) // avoid clear button in firefox
-                    .disabled(self.active)
-                    .on_change(ctx.link().callback(Msg::Until))
-                    .value(until),
+                Container::new().with_child(
+                    Field::new()
+                        .label_id(self.until_label_id.clone())
+                        .input_type(InputType::DatetimeLocal)
+                        .required(true) // avoid clear button in firefox
+                        .disabled(self.active)
+                        .on_change(ctx.link().callback(Msg::Until))
+                        .value(until),
+                ),
             )
             .border_bottom(true)
             .into()
-- 
2.47.3



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


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

end of thread, other threads:[~2025-12-17 11:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17 11:10 [yew-devel] [PATCH yew-comp 1/2] syslog: fix toolbar spacing Dominik Csapak
2025-12-17 11:10 ` [yew-devel] [RFC PATCH yew-comp 2/2] syslog: use new DateField for selecting the date Dominik Csapak
2025-12-17 11:34 ` [yew-devel] applied: [PATCH yew-comp 1/2] syslog: fix toolbar spacing Dietmar Maurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal