Skip to content

Commit c37d84d

Browse files
committed
Spacing for Config and Secret
Signed-off-by: Trung Nguyen <[email protected]>
1 parent 5dad8a3 commit c37d84d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import { v1 } from '@docker/extension-api-client-types';
22
import CheckOutlined from '@mui/icons-material/CheckOutlined';
33
import CloseOutlined from '@mui/icons-material/CloseOutlined';
44
import {
5-
Alert,
65
CircularProgress,
76
IconButton,
8-
OutlinedInput,
97
Stack,
108
TextField,
119
Typography,
@@ -82,7 +80,7 @@ const ConfigEditor = ({
8280
}
8381

8482
return (
85-
<Stack>
83+
<Stack spacing={1}>
8684
<Typography variant="subtitle2">Config</Typography>
8785
<Stack direction="column" spacing={2}>
8886
{Object.keys(flattenedConfig).map((key: string) => {
@@ -91,9 +89,9 @@ const ConfigEditor = ({
9189

9290
return (
9391
<Stack key={key} direction="row" spacing={2}>
94-
<OutlinedInput
92+
<TextField
9593
size="small"
96-
placeholder={key}
94+
label={key}
9795
value={localConfig[key] || ''}
9896
onChange={(e) =>
9997
setLocalConfig({ ...localConfig, [key]: e.target.value })

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
Switch,
2222
Tab,
2323
Tabs,
24+
TextField,
2425
Tooltip,
2526
Typography,
2627
useTheme,
@@ -279,7 +280,7 @@ const ConfigurationModal = ({
279280
<Stack direction="column" spacing={2}>
280281
<ConfigEditor catalogItem={catalogItem} client={client} />
281282

282-
<Stack>
283+
<Stack spacing={1}>
283284
<Typography variant="subtitle2">Secrets</Typography>
284285
{catalogItem.secrets && catalogItem.secrets?.length > 0 ? (
285286
catalogItem.secrets.map((secret) => {
@@ -296,10 +297,10 @@ const ConfigurationModal = ({
296297
spacing={2}
297298
alignItems="center"
298299
>
299-
<OutlinedInput
300+
<TextField
300301
size="small"
301302
key={secret.name}
302-
placeholder={secret.name}
303+
label={secret.name}
303304
value={localSecrets[secret.name]}
304305
fullWidth
305306
onChange={(e) => {

0 commit comments

Comments
 (0)