diff --git a/src-tauri/src/panel.rs b/src-tauri/src/panel.rs index 5833bdcc..edb42ee1 100644 --- a/src-tauri/src/panel.rs +++ b/src-tauri/src/panel.rs @@ -115,7 +115,7 @@ pub fn position_panel_at_tray_icon( let icon_center_x_phys = icon_phys_x + (icon_width_phys / 2); let panel_x_phys = icon_center_x_phys - (window_width_phys / 2); - let padding_phys = (8.0 * scale_factor).round() as i32; + let padding_phys = (-8.0 * scale_factor).round() as i32; let panel_y_phys = icon_phys_y + icon_height_phys + padding_phys; let final_pos = tauri::PhysicalPosition::new(panel_x_phys, panel_y_phys); diff --git a/src/App.tsx b/src/App.tsx index 1b4b3e6d..53730e0a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -30,6 +30,7 @@ import { const PANEL_WIDTH = 350; const MAX_HEIGHT_FALLBACK_PX = 600; const MAX_HEIGHT_FRACTION_OF_MONITOR = 0.8; +const ARROW_OVERHEAD_PX = 13; // .tray-arrow (7px) + wrapper pt-1.5 (6px) type PluginState = { data: PluginOutput | null @@ -489,27 +490,29 @@ function App() { } return ( -