File tree 1 file changed +21
-2
lines changed
webview-ui/src/components/settings
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -237,17 +237,36 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
237
237
</ VSCodeButton >
238
238
</ div >
239
239
240
- < div style = { { marginTop : '10px' } } >
240
+ < div style = { {
241
+ marginTop : '10px' ,
242
+ display : 'flex' ,
243
+ flexWrap : 'wrap' ,
244
+ gap : '5px'
245
+ } } >
241
246
{ ( allowedCommands ?? [ ] ) . map ( ( cmd , index ) => (
242
247
< div key = { index } style = { {
243
248
display : 'flex' ,
244
249
alignItems : 'center' ,
245
250
gap : '5px' ,
246
- marginBottom : '5px'
251
+ backgroundColor : 'var(--vscode-button-secondaryBackground)' ,
252
+ padding : '2px 6px' ,
253
+ borderRadius : '4px' ,
254
+ border : '1px solid var(--vscode-button-secondaryBorder)' ,
255
+ height : '24px'
247
256
} } >
248
257
< span > { cmd } </ span >
249
258
< VSCodeButton
250
259
appearance = "icon"
260
+ style = { {
261
+ padding : 0 ,
262
+ margin : 0 ,
263
+ height : '20px' ,
264
+ width : '20px' ,
265
+ minWidth : '20px' ,
266
+ display : 'flex' ,
267
+ alignItems : 'center' ,
268
+ justifyContent : 'center'
269
+ } }
251
270
onClick = { ( ) => {
252
271
const newCommands = ( allowedCommands ?? [ ] ) . filter ( ( _ , i ) => i !== index )
253
272
setAllowedCommands ( newCommands )
You can’t perform that action at this time.
0 commit comments