diff --git a/desktop/tauri/src-tauri/capabilities/default.json b/desktop/tauri/src-tauri/capabilities/default.json index ee0f85e0..1f2a5c71 100644 --- a/desktop/tauri/src-tauri/capabilities/default.json +++ b/desktop/tauri/src-tauri/capabilities/default.json @@ -28,6 +28,7 @@ "core:resources:default", "core:menu:default", "core:tray:default", + "core:webview:allow-set-webview-zoom", "shell:allow-open", "notification:default", "window-state:allow-save-window-state", diff --git a/desktop/tauri/src-tauri/src/window.rs b/desktop/tauri/src-tauri/src/window.rs index a70d1912..fc56d66f 100644 --- a/desktop/tauri/src-tauri/src/window.rs +++ b/desktop/tauri/src-tauri/src/window.rs @@ -35,6 +35,7 @@ pub fn create_main_window(app: &AppHandle) -> Result { .visible(false) .inner_size(1200.0, 700.0) .min_inner_size(800.0, 600.0) + .zoom_hotkeys_enabled(true) .theme(Some(Theme::Dark)) .on_page_load(|_window, _event| { debug!("[tauri] main window page loaded: {}", _event.url()); @@ -104,6 +105,7 @@ pub fn create_splash_window(app: &AppHandle) -> Result { .visible(true) .title("Portmaster") .inner_size(600.0, 250.0) + .zoom_hotkeys_enabled(true) .build()?; set_window_icon(&window);