@@ -75,8 +75,11 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
7575 return (
7676 < TooltipProvider >
7777 < div
78- className = "h-11 bg-background flex items-center justify-between select-none border-b border-border/50"
79- style = { { borderTopLeftRadius : '12px' , borderTopRightRadius : '12px' } }
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+ } }
8083 data-tauri-drag-region
8184 onMouseEnter = { ( ) => setIsHovered ( true ) }
8285 onMouseLeave = { ( ) => setIsHovered ( false ) }
@@ -90,7 +93,8 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
9093 e . stopPropagation ( ) ;
9194 handleClose ( ) ;
9295 } }
93- 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 z-10"
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' } }
9498 title = "Close"
9599 >
96100 { isHovered && (
@@ -104,7 +108,8 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
104108 e . stopPropagation ( ) ;
105109 handleMinimize ( ) ;
106110 } }
107- 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 z-10"
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' } }
108113 title = "Minimize"
109114 >
110115 { isHovered && (
@@ -118,7 +123,8 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
118123 e . stopPropagation ( ) ;
119124 handleMaximize ( ) ;
120125 } }
121- 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 z-10"
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' } }
122128 title = "Maximize"
123129 >
124130 { isHovered && (
@@ -137,7 +143,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
137143 </div> */ }
138144
139145 { /* Right side - Navigation icons with improved spacing */ }
140- < div className = "flex items-center pr-5 gap-3" >
146+ < div className = "flex items-center pr-5 gap-3" style = { { WebkitAppRegion : 'no-drag' } } >
141147 { /* Primary actions group */ }
142148 < div className = "flex items-center gap-1" >
143149 { onAgentsClick && (
@@ -147,6 +153,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
147153 whileTap = { { scale : 0.97 } }
148154 transition = { { duration : 0.15 } }
149155 className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors"
156+ style = { { WebkitAppRegion : 'no-drag' } }
150157 >
151158 < Bot size = { 16 } />
152159 </ motion . button >
@@ -160,6 +167,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
160167 whileTap = { { scale : 0.97 } }
161168 transition = { { duration : 0.15 } }
162169 className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors"
170+ style = { { WebkitAppRegion : 'no-drag' } }
163171 >
164172 < BarChart3 size = { 16 } />
165173 </ motion . button >
@@ -179,6 +187,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
179187 whileTap = { { scale : 0.97 } }
180188 transition = { { duration : 0.15 } }
181189 className = "p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors"
190+ style = { { WebkitAppRegion : 'no-drag' } }
182191 >
183192 < Settings size = { 16 } />
184193 </ motion . button >
@@ -199,7 +208,7 @@ export const CustomTitlebar: React.FC<CustomTitlebarProps> = ({
199208 </ TooltipSimple >
200209
201210 { isDropdownOpen && (
202- < div className = "absolute right-0 mt-2 w-48 bg-popover border border-border rounded-lg shadow-lg z-50 " >
211+ < div className = "absolute right-0 mt-2 w-48 bg-popover border border-border rounded-lg shadow-lg z-[250] " >
203212 < div className = "py-1" >
204213 { onClaudeClick && (
205214 < button
0 commit comments