Skip to content

Commit

Permalink
styling on indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Jun 29, 2024
1 parent f6eb55a commit 26cb507
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/IndexingProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ const IndexingProgress: React.FC<IndexingProgressProps> = ({
? "Initializing vector database..."
: "Indexing files..."}
</h6>
<div className="w-full h-4 bg-neutral-800 rounded-full overflow-hidden mb-2 border-2 border-gray-400">
<div
className={`w-full h-4 rounded-full overflow-hidden mb-2 border-2 border-gray-400 ${
indexingProgress !== 0 ? "bg-neutral-800" : ""
}`}
>
<div
className="bg-blue-400 h-full transition-all duration-300 ease-out"
style={{ width: `${indexingProgress * 100}%` }}
Expand Down

0 comments on commit 26cb507

Please sign in to comment.