From 7337b3e49b6d24dedca00f2dca4bf3c35bad0d01 Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Sun, 29 Mar 2026 18:24:16 +0000 Subject: [PATCH] Quick fixes for S&T (#27) Some quick QAL changes I banged out this morning. The commit messages describe the individual changes in details. ## Changes - Min window width on desktop. - Removes white flash on desktop startup - Removes right click menu on release builds (still exists on debug, and might come back in the future with new features). Reviewed-on: https://git.ohea.xyz/mumble/mumble-web2/pulls/27 Reviewed-by: restitux --- gui/assets/main.scss | 1 + gui/src/main.rs | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/gui/assets/main.scss b/gui/assets/main.scss index f6054ab..4584e68 100644 --- a/gui/assets/main.scss +++ b/gui/assets/main.scss @@ -16,6 +16,7 @@ body { } #main { + visibility: visible; height: 100vh; display: flex; flex-direction: column; diff --git a/gui/src/main.rs b/gui/src/main.rs index a4185c6..58ce7cf 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -1,6 +1,22 @@ +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() + // Reduce white flash on startup by setting background color and hiding main element + .with_background_color((0, 0, 0, 255)) + .with_custom_head("".into()) + .with_disable_context_menu(cfg!(not(debug_assertions))) + .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)) + .with_maximized(false), + ) + }) + .launch(app::app); }