diff --git a/.changeset/spotty-spiders-love.md b/.changeset/spotty-spiders-love.md new file mode 100644 index 0000000000..e0ac3b3cc7 --- /dev/null +++ b/.changeset/spotty-spiders-love.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Make catalog search result list a bit more customizable diff --git a/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx b/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx index 541d7c7d3a..a277584d2f 100644 --- a/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx +++ b/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx @@ -29,16 +29,20 @@ import { } from '@backstage/plugin-search-common'; import { HighlightedSearchResultText } from '@backstage/plugin-search-react'; -const useStyles = makeStyles({ - flexContainer: { - flexWrap: 'wrap', +const useStyles = makeStyles( + { + item: {}, + flexContainer: { + flexWrap: 'wrap', + }, + itemText: { + width: '100%', + wordBreak: 'break-all', + marginBottom: '1rem', + }, }, - itemText: { - width: '100%', - wordBreak: 'break-all', - marginBottom: '1rem', - }, -}); + { name: 'CatalogSearchResultListItem' }, +); /** * Props for {@link CatalogSearchResultListItem}. @@ -64,7 +68,7 @@ export function CatalogSearchResultListItem( if (!result) return null; return ( - <> +