all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-comp v2] wizard: make content panel resizable
Date: Thu,  2 Apr 2026 12:34:19 +0200	[thread overview]
Message-ID: <20260402103438.357242-1-c.heiss@proxmox.com> (raw)

Without this, the content panel won't be resized together with the
parent wizard dialog, if that is set as resizable, staying static and
not filling the dialog content area properly.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
v1: https://lore.proxmox.com/yew-devel/20260401143416.2144615-1-c.heiss@proxmox.com/

Changes v1 -> v2:
  * set FlexFit on content panel unconditionally

 src/wizard.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wizard.rs b/src/wizard.rs
index 7d83da1..e6f3cd3 100644
--- a/src/wizard.rs
+++ b/src/wizard.rs
@@ -8,7 +8,7 @@ use html::Scope;
 use indexmap::IndexMap;
 use serde_json::{json, Value};
 
-use pwt::css::{Flex, Overflow};
+use pwt::css::{Flex, FlexFit, Overflow};
 use pwt::props::RenderFn;
 use pwt::{prelude::*, AsyncPool};
 
@@ -553,7 +553,7 @@ impl Component for PwtWizard {
             tab_panel.add_item(tab_bar_item, page_content);
         }
 
-        let tab_panel = Mask::new(tab_panel).visible(self.loading);
+        let tab_panel = Mask::new(tab_panel).visible(self.loading).class(FlexFit);
 
         Container::new()
             .with_child(
-- 
2.53.0





             reply	other threads:[~2026-04-02 10:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02 10:34 Christoph Heiss [this message]
2026-04-02 12:00 ` applied: " Dominik Csapak

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=20260402103438.357242-1-c.heiss@proxmox.com \
    --to=c.heiss@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 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