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