From cd1aed2b9a4cfbf5458a0feeaece6876b25f2dca Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Sun, 29 Mar 2026 09:35:13 -0600 Subject: [PATCH] Desktop now has minimum width. I just played around until I found something that looks right. Before there'd be really degen behavior if you squished the window too much. --- gui/src/main.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gui/src/main.rs b/gui/src/main.rs index a4185c6..2ca9538 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -1,6 +1,16 @@ +use dioxus::prelude::*; use mumble_web2_gui::{app, imp::Platform, imp::PlatformInterface as _}; pub fn main() { Platform::init_logging(); - dioxus::launch(app::app); + dioxus::LaunchBuilder::new() + .with_cfg(desktop! { + dioxus::desktop::Config::new().with_window( + dioxus::desktop::WindowBuilder::new() + .with_title("Mumble Web 2") + .with_min_inner_size(dioxus::desktop::LogicalSize::new(600.0, 300.0)) + .with_inner_size(dioxus::desktop::LogicalSize::new(900.0, 700.0)), + ) + }) + .launch(app::app); }