public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH yew-comp 1/2] syslog: fix toolbar spacing
Date: Wed, 17 Dec 2025 12:10:50 +0100	[thread overview]
Message-ID: <20251217111205.1400585-1-d.csapak@proxmox.com> (raw)

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


             reply	other threads:[~2025-12-17 11:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-17 11:10 Dominik Csapak [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251217111205.1400585-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=yew-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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