mirror of
https://github.com/R0m1k3/TodoFlow.git
synced 2026-10-11 17:28:17 +02:00
Enable withGlobalTauri in config and create dedicated header drag zone to fix window drag and button click issues
This commit is contained in:
1 parent
753dec84c5
commit
87eeba192f
3 files changed
+11
-8
No files matched your search
@@ -3,7 +3,8 @@
|
||||
"distDir": "../src",
|
||||
"devPath": "../src",
|
||||
"beforeDevCommand": "",
|
||||
"beforeBuildCommand": ""
|
||||
"beforeBuildCommand": "",
|
||||
"withGlobalTauri": true
|
||||
},
|
||||
"package": {
|
||||
"productName": "TodoFlow",
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user