Skip to content

Commit d0db32f

Browse files
committed
Revert "Slight tweaks to mcp client view"
This reverts commit 96f09e5.
1 parent e64f457 commit d0db32f

File tree

2 files changed

+22
-35
lines changed

2 files changed

+22
-35
lines changed

src/extension/ui/src/components/CatalogGrid.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
7676
justifyContent="center"
7777
sx={CATALOG_LAYOUT_SX}
7878
>
79-
<Typography variant="h3">Docker MCP Toolkit</Typography>
79+
<Typography variant="h3">Docker MCP Catalog</Typography>
8080
<Typography sx={{ color: 'text.secondary' }}>
81-
Find and connect your favorite tools to MCP clients. One click away.
81+
Browse the Docker MCP Catalog and connect Dockerized MCP servers to
82+
your favorite MCP Client
8283
</Typography>
8384
</Stack>
8485
{hasOutOfCatalog && (

src/extension/ui/src/components/tabs/YourClients.tsx

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import ContinueIcon from '../../assets/continue.svg';
2626
import CursorIcon from '../../assets/cursor.svg';
2727
import GordonIcon from '../../assets/gordon-icon.png';
2828
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';
3030

3131
// Initialize the Docker Desktop client
3232
const client = createDockerDesktopClient();
@@ -43,15 +43,12 @@ const iconMap = {
4343
};
4444

4545
const 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

Comments
 (0)