Enable withGlobalTauri in config and create dedicated header drag zone to fix window drag and button click issues

This commit is contained in:
Michael committed 2026-05-26 20:39:35 +02:00
1 parent 753dec84c5
commit 87eeba192f
3 files changed
+11 -8

No files matched your search

+2 -1
View File
@@ -3,7 +3,8 @@
"distDir": "../src",
"devPath": "../src",
"beforeDevCommand": "",
"beforeBuildCommand": ""
"beforeBuildCommand": "",
"withGlobalTauri": true
},
"package": {
"productName": "TodoFlow",
+1 -1
View File
@@ -14,7 +14,7 @@
<div class="todo-widget">
<!-- Barre supérieure personnalisée avec zone de déplacement pour Tauri -->
<header class="widget-header">
<div class="header-left" data-tauri-drag-region>
<div class="header-drag-zone" data-tauri-drag-region>
<span class="status-indicator disconnected" id="connection-status" title="Déconnecté"></span>
<h1 class="widget-title" data-tauri-drag-region>TodoFlow</h1>
</div>
+8 -6
View File
@@ -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 */