Skip to content

Commit f4c4060

Browse files
fix search scope selector
1 parent 58cc5c6 commit f4c4060

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

packages/web/src/features/chat/components/chatBox/searchScopeSelector.tsx

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -320,23 +320,17 @@ export const SearchScopeSelector = forwardRef<
320320
>
321321
<CheckIcon className="h-4 w-4" />
322322
</div>
323-
<div className="flex items-center gap-2 flex-1">
323+
<div className="flex flex-row items-center gap-2 w-full overflow-hidden">
324324
<SearchScopeIcon searchScope={item} />
325-
<div className="flex flex-col flex-1">
326-
<div className="flex items-center gap-2">
327-
<span className="font-medium">
328-
{item.name}
329-
</span>
330-
{item.type === 'reposet' && (
331-
<Badge
332-
variant="default"
333-
className="text-[10px] px-1.5 py-0 h-4 bg-primary text-primary-foreground"
334-
>
335-
{item.repoCount} repo{item.repoCount === 1 ? '' : 's'}
336-
</Badge>
337-
)}
338-
</div>
339-
</div>
325+
<p className="font-medium truncate-start">{item.name}</p>
326+
{item.type === 'reposet' && (
327+
<Badge
328+
variant="default"
329+
className="text-[10px] px-1.5 py-0 h-4 bg-primary text-primary-foreground"
330+
>
331+
{item.repoCount} repo{item.repoCount === 1 ? '' : 's'}
332+
</Badge>
333+
)}
340334
</div>
341335
</div>
342336
);

0 commit comments

Comments
 (0)