diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index c4a5af1..93c5ba0 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -775,7 +775,7 @@ pub struct ExportResult { } const OVERLAY_BORDER_LOGICAL_PX: f64 = 4.0; -const OVERLAY_TITLEBAR_LOGICAL_PX: f64 = 22.0; +const OVERLAY_TITLEBAR_LOGICAL_PX: f64 = 24.0; fn start_overlay_clickthrough_poll(app: AppHandle, shutdown: Arc) { diff --git a/src/lib/Overlay.svelte b/src/lib/Overlay.svelte index 48b332c..adbfd31 100644 --- a/src/lib/Overlay.svelte +++ b/src/lib/Overlay.svelte @@ -36,6 +36,8 @@ win.onResized(async () => { if (enforcing) return await updateSize() + // Re-sync ratio from Rust in case it changed (e.g. preset clicked) + await syncRatio() if (lockedRatio === null) return // Small debounce to break the SetWindowPos → onResized loop if (resizeDebounce !== null) clearTimeout(resizeDebounce)