mirror of
https://github.com/gustavosett/Windows-11-Clipboard-History-For-Linux
synced 2026-04-25 17:15:35 +02:00
fix: ajust lint
This commit is contained in:
@@ -76,7 +76,7 @@ fn show_window_at_cursor(window: &WebviewWindow) {
|
||||
|
||||
// Try to get cursor position - this may fail on Wayland
|
||||
let cursor_result = window.cursor_position();
|
||||
|
||||
|
||||
match cursor_result {
|
||||
Ok(cursor_pos) => {
|
||||
// X11 or XWayland - we can position at cursor
|
||||
|
||||
@@ -9,7 +9,7 @@ export function DragHandle() {
|
||||
const handleMouseDown = async (e: React.MouseEvent) => {
|
||||
// Only handle left mouse button
|
||||
if (e.button !== 0) return
|
||||
|
||||
|
||||
try {
|
||||
await getCurrentWindow().startDragging()
|
||||
} catch (error) {
|
||||
@@ -25,9 +25,9 @@ export function DragHandle() {
|
||||
className="w-full flex justify-center pt-2 pb-1 cursor-grab active:cursor-grabbing select-none"
|
||||
onMouseDown={handleMouseDown}
|
||||
>
|
||||
<div
|
||||
<div
|
||||
data-tauri-drag-region
|
||||
className="w-16 h-1 rounded-full dark:bg-white/20 bg-black/20 pointer-events-none"
|
||||
className="w-16 h-1 rounded-full dark:bg-white/20 bg-black/20 pointer-events-none"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user