From 64e0cabaa787460c2390d5185e876061a397b13a Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 20 Dec 2025 11:19:26 +0800 Subject: [PATCH] fix(window): add minWidth/minHeight to Windows platform config Tauri 2.0 platform config merging is shallow, not deep. The Windows config only specified titleBarStyle, causing minWidth/minHeight to be missing on Windows. This allowed users to resize the window below 900px, causing header elements to misalign. --- src-tauri/tauri.windows.conf.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 0f64fc6fd..4461d5fb8 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -4,7 +4,9 @@ "windows": [ { "label": "main", - "titleBarStyle": "Visible" + "titleBarStyle": "Visible", + "minWidth": 900, + "minHeight": 600 } ] }