From 2ca2a2c7a82cf29c164677dc11d8acede7710b70 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Fri, 23 Jan 2026 22:53:35 +0700 Subject: [PATCH] resizable windows (#117) --- src-tauri/common/window.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src-tauri/common/window.rs b/src-tauri/common/window.rs index bd7a616..40f8969 100644 --- a/src-tauri/common/window.rs +++ b/src-tauri/common/window.rs @@ -108,7 +108,9 @@ pub async fn open_window( let mut builder = WebviewWindowBuilder::new(&app_handle, &name, WebviewUrl::App(url.into())) .title(&name) .inner_size(width, height) - .resizable(false) + .min_inner_size(700.0, 700.0) + .max_inner_size(1000.0, 1000.0) + .resizable(true) .visible(false) .focused(false) .decorations(true) @@ -153,11 +155,6 @@ pub async fn open_window( window.show().map_err(|e| e.to_string())?; window.set_focus().map_err(|e| e.to_string())?; - if os != "windows" && os != "macos" { - window.set_resizable(true).map_err(|e| e.to_string())?; - window.set_resizable(false).map_err(|e| e.to_string())?; - } - Ok(()) }