toolbar: linux fixes

This commit is contained in:
FTCHD
2026-05-10 19:18:33 +03:00
parent 7482f8543c
commit bb70a97baf
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ fn create_toolbar_window(app_handle: &AppHandle) -> Result<WebviewWindow, tauri:
let logical_position = physical_position.to_logical::<f64>(scale_factor);
let pos_x = logical_position.x;
let pos_y = logical_position.y + (logical_size.height / 4.0);
let pos_y = logical_position.y;
let mut b = WebviewWindowBuilder::new(
app_handle,
+3 -2
View File
@@ -12,6 +12,7 @@ import { type ResolvedToolbarResult, runToolbarEngine } from '../../toolbar/engi
const toolbarWindow = getCurrentWebviewWindow()
const isWindows = platform() === 'windows'
const isLinux = platform() === 'linux'
const ELEMENT_ID_REGEX = /[^a-zA-Z0-9_-]/g
@@ -462,7 +463,7 @@ export default function Toolbar() {
}, [highlightedIndex, engineResults])
return (
<div className="flex flex-col items-center justify-center w-full h-full">
<div className="flex flex-col items-center justify-center w-full h-screen pb-[15vh]">
<div
ref={activeAreaRef}
className="flex border-divider border flex-col items-center justify-center bg-content2/[0.97] w-[700px] rounded-large"
@@ -479,7 +480,7 @@ export default function Toolbar() {
/>
<input
ref={inputRef}
data-tauri-drag-region={true}
data-tauri-drag-region={!isLinux}
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"