diff --git a/lib/ui/src/components/sidebar/Search.tsx b/lib/ui/src/components/sidebar/Search.tsx index 8eb7a6c22d13..b62e5e58fe65 100644 --- a/lib/ui/src/components/sidebar/Search.tsx +++ b/lib/ui/src/components/sidebar/Search.tsx @@ -354,7 +354,10 @@ export const Search = React.memo<{ return ( <> Search for components - + {enableShortcuts && /} diff --git a/lib/ui/src/components/sidebar/SearchResults.tsx b/lib/ui/src/components/sidebar/SearchResults.tsx index 5c86ea511387..fa6e60775e1c 100644 --- a/lib/ui/src/components/sidebar/SearchResults.tsx +++ b/lib/ui/src/components/sidebar/SearchResults.tsx @@ -124,7 +124,7 @@ const Result: FunctionComponent< const nameMatch = matches.find((match: Match) => match.key === 'name'); const pathMatches = matches.filter((match: Match) => match.key === 'path'); const label = ( -
+
{item.name} @@ -202,7 +202,7 @@ export const SearchResults: FunctionComponent<{ {results.length > 0 && !query && (
  • - Recently opened + Recently opened
  • )} {results.length === 0 && query && ( @@ -221,6 +221,7 @@ export const SearchResults: FunctionComponent<{ {...result} {...getItemProps({ key: index, index, item: result })} isHighlighted={highlightedIndex === index} + className="search-result-back" > Back to components @@ -234,6 +235,7 @@ export const SearchResults: FunctionComponent<{ {...result} {...getItemProps({ key: index, index, item: result })} isHighlighted={highlightedIndex === index} + className="search-result-clearHistory" > Clear history @@ -246,6 +248,7 @@ export const SearchResults: FunctionComponent<{ {...result} {...getItemProps({ key: index, index, item: result })} isHighlighted={highlightedIndex === index} + className="search-result-more" > Show {result.moreCount} more results @@ -260,6 +263,7 @@ export const SearchResults: FunctionComponent<{ {...result} {...getItemProps({ key, index, item: result })} isHighlighted={highlightedIndex === index} + className="search-result-item" /> ); })} diff --git a/lib/ui/src/components/sidebar/Tree.tsx b/lib/ui/src/components/sidebar/Tree.tsx index 83b737fe1f58..2d3eddc2d1df 100644 --- a/lib/ui/src/components/sidebar/Tree.tsx +++ b/lib/ui/src/components/sidebar/Tree.tsx @@ -77,6 +77,7 @@ const Node = React.memo( ( if (isRoot(item)) { return ( - + {item.name} { @@ -119,6 +128,7 @@ const Node = React.memo(