Skip to content

Commit bfb3029

Browse files
fix(web): keep file search rows steady while loading
1 parent 4c8cdf3 commit bfb3029

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎apps/web/src/components/files/FileBrowserPanel.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,14 @@ export default function FileBrowserPanel({
561561
</div>
562562
) : null}
563563
{(!ready || pathSearch.isPending) && (
564-
<div role="status" className="px-3 py-1 text-xs text-muted-foreground">
564+
<div
565+
role="status"
566+
className={
567+
entries.length > 0 && !hasNoSearchMatches
568+
? "sr-only"
569+
: "px-3 py-1 text-xs text-muted-foreground"
570+
}
571+
>
565572
Loading files…
566573
</div>
567574
)}

0 commit comments

Comments
 (0)