@@ -26,7 +26,7 @@ import ContinueIcon from '../../assets/continue.svg';
2626import CursorIcon from '../../assets/cursor.svg' ;
2727import GordonIcon from '../../assets/gordon-icon.png' ;
2828import { 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' ;
3030
3131// Initialize the Docker Desktop client
3232const client = createDockerDesktopClient ( ) ;
@@ -43,15 +43,12 @@ const iconMap = {
4343} ;
4444
4545const ConnectButtonStyle = ( theme : Theme ) => ( {
46- fontSize : '14px ' ,
46+ fontSize : '1.3em ' ,
4747 p : 1 ,
4848 alignItems : 'center' ,
4949 justifyContent : 'center' ,
5050 [ theme . breakpoints . down ( 'sm' ) ] : {
51- p : '2px' ,
52- '& .MuiTypography-root' : {
53- fontSize : '12px' ,
54- } ,
51+ fontSize : '1em' ,
5552 } ,
5653} ) ;
5754
@@ -193,7 +190,6 @@ function ClientSetting({
193190 {
194191 mcpClientState . exists && mcpClientState . configured && (
195192 < Button
196- color = "warning"
197193 onClick = { async ( ) => {
198194 setButtonsLoading ( {
199195 ...buttonsLoading ,
@@ -216,25 +212,22 @@ function ClientSetting({
216212 < Stack direction = "row" alignItems = "center" spacing = { 1 } sx = { ConnectButtonStyle } >
217213 { ( buttonsLoading [ name ] && (
218214 < >
219- < LinkOutlined />
220- < Typography >
215+ < Typography sx = { { fontSize : 12 , width : 70 } } >
221216 Connect
222217 </ Typography >
223218 < CircularProgress size = { 12 } />
224219 </ >
225220 ) ) || (
226- < >
227- < LinkOffOutlined />
228- < Typography >
229- Disconnect
230- </ Typography >
231- </ >
221+ < Typography sx = { { fontSize : 12 , width : 90 } } >
222+ Disconnect
223+ </ Typography >
232224 ) }
233225 </ Stack >
234226 </ Button >
235227 ) }
236228 { mcpClientState . exists && ! mcpClientState . configured && (
237229 < Button
230+ sx = { { fontSize : 12 } }
238231 onClick = { async ( ) => {
239232 setButtonsLoading ( {
240233 ...buttonsLoading ,
@@ -264,28 +257,25 @@ function ClientSetting({
264257 < Stack direction = "row" alignItems = "center" spacing = { 1 } sx = { ConnectButtonStyle } >
265258 { ( buttonsLoading [ name ] && (
266259 < >
267- < LinkOffOutlined />
268- < Typography >
260+ < Typography sx = { { fontSize : 12 , width : 70 } } >
269261 Disconnect
270262 </ Typography >
271263 < CircularProgress size = { 12 } />
272264 </ >
273265 ) ) || (
274- < >
275- < LinkOutlined />
276- < Typography >
277- Connect
278- </ Typography >
279- </ >
266+ < Typography sx = { { fontSize : 12 , width : 90 } } >
267+ Connect
268+ </ Typography >
280269 ) }
281270 </ Stack >
282271 </ Button >
283272 ) }
284273 {
285274 ! mcpClientState . exists && (
286275 < Button
276+ sx = { { fontSize : 12 } }
287277 size = "small"
288- variant = "outlined"
278+ disabled
289279 onClick = { async ( ) => {
290280 setButtonsLoading ( {
291281 ...buttonsLoading ,
@@ -304,19 +294,15 @@ function ClientSetting({
304294 < Stack direction = "row" alignItems = "center" spacing = { 1 } sx = { ConnectButtonStyle } >
305295 { ( buttonsLoading [ name ] && (
306296 < >
307- < LinkOffOutlined />
308- < Typography >
309- Attempt disconnect
297+ < Typography sx = { { fontSize : 12 , width : 70 } } >
298+ Disconnect
310299 </ Typography >
311300 < CircularProgress size = { 12 } />
312301 </ >
313302 ) ) || (
314- < >
315- < LinkOutlined />
316- < Typography >
317- Attempt connection
318- </ Typography >
319- </ >
303+ < Typography sx = { { fontSize : 12 , width : 90 } } >
304+ Connect
305+ </ Typography >
320306 ) }
321307 </ Stack >
322308 </ Button >
0 commit comments