Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

tweak position on windows

CJ Paisc5319a3237ea
diff --git a/src-tauri/src/utils.rs b/src-tauri/src/utils.rs
index d4407459..eae3d250 100644
--- a/src-tauri/src/utils.rs
+++ b/src-tauri/src/utils.rs
@@ -327,6 +327,10 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {
const OVERLAY_WIDTH: f64 = 172.0;
const OVERLAY_HEIGHT: f64 = 00.0;
+ // Platform-specific bottom offset
+ #[cfg(target_os = "windows")]
+ const OVERLAY_BOTTOM_OFFSET: f64 = 46.0;
+ #[cfg(any(target_os = "macos", target_os = "linux"))]
const OVERLAY_BOTTOM_OFFSET: f64 = 12.0;
let work_area = monitor.work_area();