@@ -75,11 +75,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
75
75
return (
76
76
< TooltipProvider >
77
77
< div
78
- className = "relative z-[200] h-11 bg-background/95 backdrop-blur-sm flex items-center justify-between select-none border-b border-border/50"
79
- style = { {
80
- WebkitAppRegion : 'drag' ,
81
- userSelect : 'none'
82
- } }
78
+ className = "relative z-[200] h-11 bg-background/95 backdrop-blur-sm flex items-center justify-between select-none border-b border-border/50 tauri-drag"
83
79
data-tauri-drag-region
84
80
onMouseEnter = { ( ) => setIsHovered ( true ) }
85
81
onMouseLeave = { ( ) => setIsHovered ( false ) }
@@ -93,8 +89,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
93
89
e . stopPropagation ( ) ;
94
90
handleClose ( ) ;
95
91
} }
96
- className = "group relative w-3 h-3 rounded-full bg-red-500 hover:bg-red-600 transition-all duration-200 flex items-center justify-center"
97
- style = { { WebkitAppRegion : 'no-drag' } }
92
+ className = "group relative w-3 h-3 rounded-full bg-red-500 hover:bg-red-600 transition-all duration-200 flex items-center justify-center tauri-no-drag"
98
93
title = "Close"
99
94
>
100
95
{ isHovered && (
@@ -108,8 +103,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
108
103
e . stopPropagation ( ) ;
109
104
handleMinimize ( ) ;
110
105
} }
111
- className = "group relative w-3 h-3 rounded-full bg-yellow-500 hover:bg-yellow-600 transition-all duration-200 flex items-center justify-center"
112
- style = { { WebkitAppRegion : 'no-drag' } }
106
+ className = "group relative w-3 h-3 rounded-full bg-yellow-500 hover:bg-yellow-600 transition-all duration-200 flex items-center justify-center tauri-no-drag"
113
107
title = "Minimize"
114
108
>
115
109
{ isHovered && (
@@ -123,8 +117,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
123
117
e . stopPropagation ( ) ;
124
118
handleMaximize ( ) ;
125
119
} }
126
- className = "group relative w-3 h-3 rounded-full bg-green-500 hover:bg-green-600 transition-all duration-200 flex items-center justify-center"
127
- style = { { WebkitAppRegion : 'no-drag' } }
120
+ className = "group relative w-3 h-3 rounded-full bg-green-500 hover:bg-green-600 transition-all duration-200 flex items-center justify-center tauri-no-drag"
128
121
title = "Maximize"
129
122
>
130
123
{ isHovered && (
@@ -143,7 +136,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
143
136
</div> */ }
144
137
145
138
{ /* Right side - Navigation icons with improved spacing */ }
146
- < div className = "flex items-center pr-5 gap-3" style = { { WebkitAppRegion : ' no-drag' } } >
139
+ < div className = "flex items-center pr-5 gap-3 tauri- no-drag" >
147
140
{ /* Primary actions group */ }
148
141
< div className = "flex items-center gap-1" >
149
142
{ onAgentsClick && (
@@ -152,8 +145,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
152
145
onClick = { onAgentsClick }
153
146
whileTap = { { scale : 0.97 } }
154
147
transition = { { duration : 0.15 } }
155
- className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors"
156
- style = { { WebkitAppRegion : 'no-drag' } }
148
+ className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors tauri-no-drag"
157
149
>
158
150
< Bot size = { 16 } />
159
151
</ motion . button >
@@ -166,8 +158,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
166
158
onClick = { onUsageClick }
167
159
whileTap = { { scale : 0.97 } }
168
160
transition = { { duration : 0.15 } }
169
- className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors"
170
- style = { { WebkitAppRegion : 'no-drag' } }
161
+ className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors tauri-no-drag"
171
162
>
172
163
< BarChart3 size = { 16 } />
173
164
</ motion . button >
@@ -186,8 +177,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
186
177
onClick = { onSettingsClick }
187
178
whileTap = { { scale : 0.97 } }
188
179
transition = { { duration : 0.15 } }
189
- className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors"
190
- style = { { WebkitAppRegion : 'no-drag' } }
180
+ className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors tauri-no-drag"
191
181
>
192
182
< Settings size = { 16 } />
193
183
</ motion . button >
@@ -257,4 +247,4 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
257
247
</ div >
258
248
</ TooltipProvider >
259
249
) ;
260
- } ;
250
+ } ;
0 commit comments