Skip to content

Commit

Permalink
chore: improve pipe conf rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Sep 27, 2024
1 parent d36d289 commit 8064b94
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions screenpipe-app-tauri/components/search-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1016,16 +1016,23 @@ export function SearchChat() {
</Tooltip>
</TooltipProvider>
<div className="relative w-64">
<Slider
id="similarity-threshold"
min={0.5}
max={1}
step={0.01}
value={[similarityThreshold]}
onValueChange={(value) => setSimilarityThreshold(value[0])}
className={isFiltering ? "opacity-50 cursor-not-allowed" : ""}
disabled={isFiltering}
/>
<div className="flex items-center space-x-2">
<Slider
id="similarity-threshold"
min={0.5}
max={1}
step={0.01}
value={[similarityThreshold]}
onValueChange={(value) => setSimilarityThreshold(value[0])}
className={
isFiltering ? "opacity-50 cursor-not-allowed" : ""
}
disabled={isFiltering}
/>
{isFiltering && (
<Loader2 className="h-4 w-4 animate-spin ml-2" />
)}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 8064b94

Please sign in to comment.