We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1010a56 commit 5090899Copy full SHA for 5090899
src/webview/SearchSidebar/SearchResultList/comps/TreeItem.tsx
@@ -4,6 +4,7 @@ import { useBoolean } from 'react-use'
4
import type { SgSearch } from '../../../../types'
5
import { CodeBlock } from './CodeBlock'
6
import { FileLink } from './FileLink'
7
+import { VSCodeBadge } from '@vscode/webview-ui-toolkit/react'
8
9
interface TreeItemProps {
10
filePath: string
@@ -39,11 +40,12 @@ const TreeItem = ({ filePath, matches }: TreeItemProps) => {
39
40
gap="4"
41
px="2"
42
alignItems="center"
43
+ justifyContent="space-between"
44
h="22px"
45
lineHeight="22px"
46
>
47
<FileLink filePath={filePath} />
- <div>{matches.length.toString()}</div>
48
+ <VSCodeBadge>{matches.length}</VSCodeBadge>
49
</HStack>
50
51
0 commit comments