@@ -2,6 +2,7 @@ import { v1 } from '@docker/extension-api-client-types';
2
2
import CheckOutlined from '@mui/icons-material/CheckOutlined' ;
3
3
import CloseOutlined from '@mui/icons-material/CloseOutlined' ;
4
4
import {
5
+ ButtonGroup ,
5
6
CircularProgress ,
6
7
IconButton ,
7
8
Stack ,
@@ -49,9 +50,9 @@ const ConfigEditor = ({
49
50
( ) =>
50
51
configSchema
51
52
? deepFlattenObject ( {
52
- ...catalogItem . configTemplate ,
53
- ...existingConfigForItem ,
54
- } )
53
+ ...catalogItem . configTemplate ,
54
+ ...existingConfigForItem ,
55
+ } )
55
56
: { } ,
56
57
[ catalogItem . configTemplate , existingConfigForItem , configSchema ]
57
58
) ;
@@ -88,7 +89,14 @@ const ConfigEditor = ({
88
89
const isSaving = savingKeys . has ( key ) ;
89
90
90
91
return (
91
- < Stack key = { key } direction = "row" spacing = { 2 } >
92
+ < Stack
93
+ key = { key }
94
+ direction = "row"
95
+ spacing = { 2 }
96
+ sx = { {
97
+ alignItems : 'center' ,
98
+ } }
99
+ >
92
100
< TextField
93
101
fullWidth
94
102
size = "small"
@@ -100,12 +108,13 @@ const ConfigEditor = ({
100
108
disabled = { isSaving }
101
109
/>
102
110
{ edited && (
103
- < Stack direction = "row" spacing = { 2 } >
111
+ < >
104
112
{ isSaving ? (
105
113
< CircularProgress size = { 24 } />
106
114
) : (
107
- < Stack direction = "row" spacing = { 2 } >
115
+ < Stack direction = "row" spacing = { 1 } >
108
116
< IconButton
117
+ size = "small"
109
118
onClick = { ( ) =>
110
119
updateExistingConfig (
111
120
catalogItem . name ,
@@ -114,9 +123,13 @@ const ConfigEditor = ({
114
123
}
115
124
disabled = { isSaving }
116
125
>
117
- < CheckOutlined sx = { { color : 'success.main' } } />
126
+ < CheckOutlined
127
+ fontSize = "small"
128
+ sx = { { color : 'success.main' } }
129
+ />
118
130
</ IconButton >
119
131
< IconButton
132
+ size = "small"
120
133
onClick = { ( ) =>
121
134
setLocalConfig ( {
122
135
...localConfig ,
@@ -125,11 +138,14 @@ const ConfigEditor = ({
125
138
}
126
139
disabled = { isSaving }
127
140
>
128
- < CloseOutlined sx = { { color : 'error.main' } } />
141
+ < CloseOutlined
142
+ fontSize = "small"
143
+ sx = { { color : 'error.main' } }
144
+ />
129
145
</ IconButton >
130
146
</ Stack >
131
147
) }
132
- </ Stack >
148
+ </ >
133
149
) }
134
150
</ Stack >
135
151
) ;
0 commit comments