@@ -26,7 +26,7 @@ import ContinueIcon from '../../assets/continue.svg';
26
26
import CursorIcon from '../../assets/cursor.svg' ;
27
27
import GordonIcon from '../../assets/gordon-icon.png' ;
28
28
import { CATALOG_LAYOUT_SX , DOCKER_MCP_COMMAND } from '../../Constants' ;
29
- import { LinkOffOutlined , LinkOutlined } from '@mui/icons-material' ;
29
+ import { LinkOff , LinkOffOutlined , LinkOutlined } from '@mui/icons-material' ;
30
30
31
31
// Initialize the Docker Desktop client
32
32
const client = createDockerDesktopClient ( ) ;
@@ -43,12 +43,15 @@ const iconMap = {
43
43
} ;
44
44
45
45
const ConnectButtonStyle = ( theme : Theme ) => ( {
46
- fontSize : '1.3em ' ,
46
+ fontSize : '14px ' ,
47
47
p : 1 ,
48
48
alignItems : 'center' ,
49
49
justifyContent : 'center' ,
50
50
[ theme . breakpoints . down ( 'sm' ) ] : {
51
- fontSize : '1em' ,
51
+ p : '2px' ,
52
+ '& .MuiTypography-root' : {
53
+ fontSize : '12px' ,
54
+ } ,
52
55
} ,
53
56
} ) ;
54
57
@@ -190,6 +193,7 @@ function ClientSetting({
190
193
{
191
194
mcpClientState . exists && mcpClientState . configured && (
192
195
< Button
196
+ color = "warning"
193
197
onClick = { async ( ) => {
194
198
setButtonsLoading ( {
195
199
...buttonsLoading ,
@@ -212,22 +216,25 @@ function ClientSetting({
212
216
< Stack direction = "row" alignItems = "center" spacing = { 1 } sx = { ConnectButtonStyle } >
213
217
{ ( buttonsLoading [ name ] && (
214
218
< >
215
- < Typography sx = { { fontSize : 12 , width : 70 } } >
219
+ < LinkOutlined />
220
+ < Typography >
216
221
Connect
217
222
</ Typography >
218
223
< CircularProgress size = { 12 } />
219
224
</ >
220
225
) ) || (
221
- < Typography sx = { { fontSize : 12 , width : 90 } } >
222
- Disconnect
223
- </ Typography >
226
+ < >
227
+ < LinkOffOutlined />
228
+ < Typography >
229
+ Disconnect
230
+ </ Typography >
231
+ </ >
224
232
) }
225
233
</ Stack >
226
234
</ Button >
227
235
) }
228
236
{ mcpClientState . exists && ! mcpClientState . configured && (
229
237
< Button
230
- sx = { { fontSize : 12 } }
231
238
onClick = { async ( ) => {
232
239
setButtonsLoading ( {
233
240
...buttonsLoading ,
@@ -257,25 +264,28 @@ function ClientSetting({
257
264
< Stack direction = "row" alignItems = "center" spacing = { 1 } sx = { ConnectButtonStyle } >
258
265
{ ( buttonsLoading [ name ] && (
259
266
< >
260
- < Typography sx = { { fontSize : 12 , width : 70 } } >
267
+ < LinkOffOutlined />
268
+ < Typography >
261
269
Disconnect
262
270
</ Typography >
263
271
< CircularProgress size = { 12 } />
264
272
</ >
265
273
) ) || (
266
- < Typography sx = { { fontSize : 12 , width : 90 } } >
267
- Connect
268
- </ Typography >
274
+ < >
275
+ < LinkOutlined />
276
+ < Typography >
277
+ Connect
278
+ </ Typography >
279
+ </ >
269
280
) }
270
281
</ Stack >
271
282
</ Button >
272
283
) }
273
284
{
274
285
! mcpClientState . exists && (
275
286
< Button
276
- sx = { { fontSize : 12 } }
277
287
size = "small"
278
- disabled
288
+ variant = "outlined"
279
289
onClick = { async ( ) => {
280
290
setButtonsLoading ( {
281
291
...buttonsLoading ,
@@ -294,15 +304,19 @@ function ClientSetting({
294
304
< Stack direction = "row" alignItems = "center" spacing = { 1 } sx = { ConnectButtonStyle } >
295
305
{ ( buttonsLoading [ name ] && (
296
306
< >
297
- < Typography sx = { { fontSize : 12 , width : 70 } } >
298
- Disconnect
307
+ < LinkOffOutlined />
308
+ < Typography >
309
+ Attempt disconnect
299
310
</ Typography >
300
311
< CircularProgress size = { 12 } />
301
312
</ >
302
313
) ) || (
303
- < Typography sx = { { fontSize : 12 , width : 90 } } >
304
- Connect
305
- </ Typography >
314
+ < >
315
+ < LinkOutlined />
316
+ < Typography >
317
+ Attempt connection
318
+ </ Typography >
319
+ </ >
306
320
) }
307
321
</ Stack >
308
322
</ Button >
0 commit comments