diff --git a/src/webview/common/devfileListItem.tsx b/src/webview/common/devfileListItem.tsx index a9f4c5b7f..5f2261e72 100644 --- a/src/webview/common/devfileListItem.tsx +++ b/src/webview/common/devfileListItem.tsx @@ -70,7 +70,7 @@ function DevfileListContent(props: DevfileListItemProps) { {props.devfile.description} - : } - color={props.devfile.supportsDebug ? 'success' : 'error'} - /> - : } - color={props.devfile.supportsDeploy ? 'success' : 'error'} - /> + { + props.devfile.supportsDebug && } + color={'success'} + /> + } + { + props.devfile.supportsDeploy && } + color={'success'} + /> + } {(props.devfile.tags && props.devfile.tags.map((tag, i) => { if (i >= 4) { return; diff --git a/src/webview/common/devfileSearch.tsx b/src/webview/common/devfileSearch.tsx index 6a31e867a..5c2ba465d 100644 --- a/src/webview/common/devfileSearch.tsx +++ b/src/webview/common/devfileSearch.tsx @@ -654,15 +654,39 @@ export function DevfileSearch(props: DevfileSearchProps) { return ( <> - {props.titleText} + + {(devfileCapabilities.length > 0 || devfileTags.length > 0) && ( + + + Filter by + + + {devfileCapabilities.length > 0 && ( + <> + + + )} + {devfileTags.length > 0 && ( + + )} + + + )} + - + {devfileRegistries.length > 1 && ( <> Devfile Registries - + )} - {(devfileCapabilities.length > 0 || devfileTags.length > 0) && ( - <> - - Filter by - - - {devfileCapabilities.length > 0 && ( - <> - - - - )} - {devfileTags.length > 0 && ( - - )} - - - )} diff --git a/src/webview/devfile-registry/app/devfileRegistry.tsx b/src/webview/devfile-registry/app/devfileRegistry.tsx index eb90507d9..375f27507 100644 --- a/src/webview/devfile-registry/app/devfileRegistry.tsx +++ b/src/webview/devfile-registry/app/devfileRegistry.tsx @@ -36,7 +36,7 @@ export const DevfileRegistry = () => { return ( - +