From 87eeba192f3e59ad3276c9ce992fdc9032c43ab0 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Tue, 26 May 2026 20:39:35 +0200 Subject: [PATCH] Enable withGlobalTauri in config and create dedicated header drag zone to fix window drag and button click issues --- widget/src-tauri/tauri.conf.json | 3 ++- widget/src/index.html | 2 +- widget/src/style.css | 14 ++++++++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/widget/src-tauri/tauri.conf.json b/widget/src-tauri/tauri.conf.json index d224e07..8fb1913 100644 --- a/widget/src-tauri/tauri.conf.json +++ b/widget/src-tauri/tauri.conf.json @@ -3,7 +3,8 @@ "distDir": "../src", "devPath": "../src", "beforeDevCommand": "", - "beforeBuildCommand": "" + "beforeBuildCommand": "", + "withGlobalTauri": true }, "package": { "productName": "TodoFlow", diff --git a/widget/src/index.html b/widget/src/index.html index dcc9f9c..f0cf06b 100644 --- a/widget/src/index.html +++ b/widget/src/index.html @@ -14,7 +14,7 @@
-
+

TodoFlow

diff --git a/widget/src/style.css b/widget/src/style.css index 2ac2a2a..72c20cd 100644 --- a/widget/src/style.css +++ b/widget/src/style.css @@ -63,17 +63,19 @@ body { display: flex; justify-content: space-between; align-items: center; - cursor: grab; /* Indique qu'on peut faire glisser le widget */ } -.widget-header:active { - cursor: grabbing; -} - -.header-left { +.header-drag-zone { display: flex; align-items: center; gap: 8px; + flex: 1; + height: 100%; + cursor: grab; +} + +.header-drag-zone:active { + cursor: grabbing; } /* Indicateur d'état connecté à l'API */