Skip to content

Commit f942fc4

Browse files
author
colinmcneil
committed
More Docker UI Alignment
1 parent b53479f commit f942fc4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const MCPClientSettings = ({ mcpClientStates, onUpdate, setButtonsLoading, butto
158158
<IconButton onClick={() => navigator.clipboard.writeText(DOCKER_MCP_COMMAND)}>
159159
<ContentCopy />
160160
</IconButton>
161-
<Typography variant="caption" sx={theme => ({ backgroundColor: theme.palette.grey[200], padding: 1, borderRadius: 1, fontFamily: 'monospace', whiteSpace: 'nowrap', overflow: 'auto' })}>
161+
<Typography variant="caption" sx={theme => ({ backgroundColor: theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.grey[200], padding: 1, borderRadius: 1, fontFamily: 'monospace', whiteSpace: 'nowrap', overflow: 'auto', color: 'text.primary' })}>
162162
{DOCKER_MCP_COMMAND}
163163
</Typography>
164164
</Stack>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const YourTools: React.FC<YourToolsProps> = ({
4444
const unassignedSecrets = catalogItem?.secrets?.filter((s: any) => !secrets.find((s: any) => s.name === s)) || [];
4545
if (!catalogItem) return <Grid2 size={{ xs: 12, sm: 6, md: 4 }} key={name}>
4646
<Alert severity="error">
47-
<AlertTitle>Catalog item not found</AlertTitle>
48-
You have registered a tile named <strong>{name}</strong> but it is not in the catalog.If this is not intentional, the catalog may have changed since.
47+
<AlertTitle><strong>{name}</strong> not in catalog</AlertTitle>
48+
You have registered a tile named <strong>{name}</strong> but it is not in the catalog. If this is not intentional, the catalog may have changed since.
4949
</Alert>
5050
</Grid2>;
5151
return (

src/extension/ui/src/components/tile/Tile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ const Tile = ({ item, registered, onSecretChange, secrets, ActionsSlot }: TilePr
8080
</Stack>
8181
</DialogContent>
8282
</Dialog>
83-
<Card sx={(theme) => ({ height: 140, borderColor: 'divider', borderWidth: 1, borderStyle: 'solid' })} >
83+
<Card sx={{ height: 130, borderColor: 'divider', borderWidth: 1, borderStyle: 'solid' }} >
8484
<Stack direction="column" height="100%" sx={{ justifyContent: 'space-between' }}>
8585
<CardContent sx={{ paddingBottom: 0, paddingTop: 2 }}>
8686
<Stack direction="column" spacing={0}>
8787
<Stack direction="row" spacing={0} justifyContent="space-between">
8888
<CardMedia
8989
component="img"
90-
sx={{ width: '3em', height: '3em', padding: 1, background: 'white', borderRadius: 1, boxSizing: 'border-box', mt: -1, ml: -1 }}
90+
sx={{ width: '30px', height: '30px', padding: '2px', background: 'white', borderRadius: 1, boxSizing: 'border-box', mt: '-1px', ml: '-1px' }}
9191
alt={`Icon for ${item.name}`}
9292
image={item.icon}
9393
/>
@@ -102,7 +102,7 @@ const Tile = ({ item, registered, onSecretChange, secrets, ActionsSlot }: TilePr
102102
</Tooltip>
103103
</Stack>
104104
</CardContent>
105-
<CardActions sx={{ px: 1.5, height: 30 }}>
105+
<CardActions sx={{ px: 1, height: 30 }}>
106106
{ActionsSlot}
107107
</CardActions>
108108
</Stack >

0 commit comments

Comments
 (0)