File tree 2 files changed +9
-2
lines changed
renderer/src/pages/widget 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ class ScreenMarker {
158
158
resizable : false ,
159
159
type : 'toolbar' ,
160
160
visualEffectState : 'active' , // macOS only
161
- backgroundColor : '#00000000' , // 透明背景
162
161
webPreferences : {
163
162
preload : path . join ( __dirname , '../preload/index.js' ) ,
164
163
sandbox : false ,
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ import { api } from '@renderer/api';
23
23
import './widget.css' ;
24
24
import { StatusEnum } from '@ui-tars/sdk' ;
25
25
26
+ // https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
27
+ // chrome 93 support
28
+ // @ts -ignore
29
+ const isWin = navigator . userAgentData . platform === 'Windows' ;
30
+
26
31
interface Action {
27
32
action : string ;
28
33
type : string ;
@@ -139,7 +144,10 @@ const Widget = () => {
139
144
} , [ ] ) ;
140
145
141
146
return (
142
- < div className = "w-100 h-100 overflow-hidden p-4 bg-white/90 dark:bg-gray-800/90" >
147
+ < div
148
+ className = "w-100 h-100 overflow-hidden p-4 bg-white/90 dark:bg-gray-800/90 rounded-[10px] border-gray-300"
149
+ style = { { borderWidth : isWin ? '1px' : '0' } }
150
+ >
143
151
< div className = "flex draggable-area" >
144
152
{ /* Logo */ }
145
153
< img src = { logo } alt = "logo" className = "-ml-2 h-6 mr-auto" />
You can’t perform that action at this time.
0 commit comments