From: Christoph Heiss <c.heiss@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-comp] wizard: make content panel resizable too if wizard parent is
Date: Wed, 1 Apr 2026 16:34:13 +0200 [thread overview]
Message-ID: <20260401143416.2144615-1-c.heiss@proxmox.com> (raw)
Without this, the content panel won't be resized together with the
parent wizard dialog, staying static and not filling the dialog content
area.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
src/wizard.rs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/wizard.rs b/src/wizard.rs
index 7d83da1..6d1d02a 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::{self, Flex, Overflow};
use pwt::props::RenderFn;
use pwt::{prelude::*, AsyncPool};
@@ -553,7 +553,10 @@ impl Component for PwtWizard {
tab_panel.add_item(tab_bar_item, page_content);
}
- let tab_panel = Mask::new(tab_panel).visible(self.loading);
+ let mut tab_panel = Mask::new(tab_panel).visible(self.loading);
+ if props.resizable {
+ tab_panel.add_class(css::FlexFit);
+ }
Container::new()
.with_child(
--
2.53.0
next reply other threads:[~2026-04-01 14:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 14:34 Christoph Heiss [this message]
2026-04-02 6:27 ` Dominik Csapak
2026-04-02 10:28 ` Christoph Heiss
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=20260401143416.2144615-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox