[PATCH yew-comp] wizard: make content panel resizable too if wizard parent is

Christoph Heiss
2026-04-01T14:33:59Z

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