[yew-devel] [PATCH yew-comp 3/3] login panel: improve layout

Dominik Csapak d.csapak at proxmox.com
Wed Jan 8 14:23:07 CET 2025


make the window fix 500px wide, and stretch the inputpanel to the whole
width by resetting the 'width' property.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/login_panel.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/login_panel.rs b/src/login_panel.rs
index c73e859..d979bbb 100644
--- a/src/login_panel.rs
+++ b/src/login_panel.rs
@@ -269,6 +269,7 @@ impl Component for ProxmoxLoginPanel {
 
         let input_panel = InputPanel::new()
             .class(Overflow::Auto)
+            .width("initial") // don't try to minimize size
             .padding(4)
             .with_field(
                 "User name",
@@ -339,6 +340,7 @@ impl Component for ProxmoxLoginPanel {
             .with_child(toolbar);
 
         let form = Form::new()
+            .width(500)
             .class("pwt-overflow-auto")
             .form_context(self.form_ctx.clone())
             .with_child(form_panel);
-- 
2.39.5





More information about the yew-devel mailing list