File tree 3 files changed +17
-4
lines changed
apps/agent-tars/src/renderer/src/components
3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change
1
+ .header {
2
+ -webkit-app-region : drag;
3
+ }
4
+
5
+ .closeButton {
6
+ -webkit-app-region : no- drag;
7
+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
22
22
EventType ,
23
23
} from '@renderer/type/event' ;
24
24
import { renderPlatformPanel } from './renderPlatformPanel' ;
25
+ import styles from './index.module.scss' ;
25
26
26
27
const StatusIcon = ( { status } : { status : ActionStatus } ) => {
27
28
switch ( status ) {
@@ -161,13 +162,15 @@ export function EventPlayer() {
161
162
} }
162
163
>
163
164
{ /* Header */ }
164
- < div className = "flex-shrink-0 flex items-center justify-between px-4 py-3 border-b border-gray-100 dark:border-gray-800" >
165
+ < div
166
+ className = { `${ styles . header } flex-shrink-0 flex items-center justify-between px-4 py-3 border-b border-gray-100 dark:border-gray-800` }
167
+ >
165
168
< h2 className = "text-lg font-semibold text-gray-900 dark:text-gray-100" >
166
169
My Computer
167
170
</ h2 >
168
171
< button
169
172
onClick = { ( ) => setShowCanvas ( false ) }
170
- className = " p-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors"
173
+ className = { ` ${ styles . closeButton } p-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors` }
171
174
>
172
175
< FiX className = "w-5 h-5" />
173
176
</ button >
Original file line number Diff line number Diff line change 21
21
22
22
& .collapsed {
23
23
width : 56px ;
24
+ -webkit-app-region : drag;
24
25
}
25
26
}
26
27
27
28
.topbar {
28
29
flex-shrink : 0 ;
29
- padding : 8px 12px 0 ;
30
- margin-top : 10 px ;
30
+ padding : 30 px 8px 12px 0 ;
31
+ margin-top : -15 px ;
31
32
margin-bottom : 10px ;
32
33
display : flex ;
33
34
justify-content : space-between ;
34
35
align-items : center ;
35
36
gap : 8px ;
37
+ -webkit-app-region : drag;
36
38
37
39
& .collapsed {
38
40
margin-top : 0 ;
69
71
transition : transform var (--transition-normal );
70
72
color : var (--ai-color-text-tertiary );
71
73
z-index : 10 ;
74
+ -webkit-app-region : no- drag;
72
75
73
76
& :hover {
74
77
background : var (--ai-color-bg-hover );
You can’t perform that action at this time.
0 commit comments