fix textarea

This commit is contained in:
Cole Goldsmith 2025-09-22 15:11:39 -05:00
parent a343d94cb9
commit dcca2d8c28
2 changed files with 10 additions and 11 deletions

View file

@ -3,12 +3,7 @@
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { X, Edit3, Save, RefreshCw } from "lucide-react"; import { X, Edit3, Save, RefreshCw } from "lucide-react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
Card,
CardContent,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label"; import { Label } from "@/components/ui/label";
import { Textarea } from "@/components/ui/textarea"; import { Textarea } from "@/components/ui/textarea";
@ -97,7 +92,7 @@ export function KnowledgeFilterPanel() {
// Load available facets using search aggregations hook // Load available facets using search aggregations hook
const { data: aggregations } = useGetSearchAggregations("*", 1, 0, { const { data: aggregations } = useGetSearchAggregations("*", 1, 0, {
enabled: isPanelOpen, enabled: isPanelOpen,
placeholderData: prev => prev, placeholderData: (prev) => prev,
staleTime: 60_000, staleTime: 60_000,
gcTime: 5 * 60_000, gcTime: 5 * 60_000,
}); });
@ -330,7 +325,7 @@ export function KnowledgeFilterPanel() {
placeholder="e.g., 'financial reports from Q4'" placeholder="e.g., 'financial reports from Q4'"
value={query} value={query}
onChange={(e) => setQuery(e.target.value)} onChange={(e) => setQuery(e.target.value)}
className="bg-background/50 border-border/50" rows={3}
/> />
</div> </div>
@ -430,7 +425,9 @@ export function KnowledgeFilterPanel() {
<div className="space-y-4 pt-4 border-t border-border/50"> <div className="space-y-4 pt-4 border-t border-border/50">
<div className="space-y-2"> <div className="space-y-2">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<Label className="text-sm font-medium text-nowrap">Response limit</Label> <Label className="text-sm font-medium text-nowrap">
Response limit
</Label>
<Input <Input
type="number" type="number"
min="1" min="1"
@ -460,7 +457,9 @@ export function KnowledgeFilterPanel() {
{/* Score Threshold Control - exactly like search page */} {/* Score Threshold Control - exactly like search page */}
<div className="space-y-2"> <div className="space-y-2">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<Label className="text-sm font-medium text-nowrap">Score threshold</Label> <Label className="text-sm font-medium text-nowrap">
Score threshold
</Label>
<Input <Input
type="number" type="number"
min="0" min="0"

View file

@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
<textarea <textarea
data-slot="textarea" data-slot="textarea"
className={cn( className={cn(
"primary-input placeholder:font-mono placeholder:text-placeholder-foreground", "primary-input placeholder:font-mono placeholder:text-placeholder-foreground min-h-fit",
className className
)} )}
{...props} {...props}