Merge pull request #823 from escapade-mckv/knowledge-base

fix: cleanup knowledge base styling
This commit is contained in:
Bobbie 2025-06-24 16:52:46 +05:30 committed by GitHub
commit fd5ea1f48b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import {
EyeOff, EyeOff,
Globe, Globe,
Search, Search,
Loader2,
} from 'lucide-react'; } from 'lucide-react';
import { import {
DropdownMenu, DropdownMenu,
@ -280,7 +281,7 @@ export const KnowledgeBaseManager = ({ threadId }: KnowledgeBaseManagerProps) =>
<div <div
key={entry.entry_id} key={entry.entry_id}
className={cn( className={cn(
"group border rounded-lg p-4 transition-all hover:shadow-sm", "group border rounded-lg p-4 transition-all",
entry.is_active entry.is_active
? "border-border bg-card hover:border-border/80" ? "border-border bg-card hover:border-border/80"
: "border-border/50 bg-muted/30 opacity-70" : "border-border/50 bg-muted/30 opacity-70"
@ -475,7 +476,7 @@ export const KnowledgeBaseManager = ({ threadId }: KnowledgeBaseManagerProps) =>
className="gap-2" className="gap-2"
> >
{createMutation.isPending || updateMutation.isPending ? ( {createMutation.isPending || updateMutation.isPending ? (
<div className="animate-spin rounded-full h-4 w-4 border-b-2 border-current" /> <Loader2 className="h-4 w-4 animate-spin" />
) : ( ) : (
<Plus className="h-4 w-4" /> <Plus className="h-4 w-4" />
)} )}
@ -505,7 +506,7 @@ export const KnowledgeBaseManager = ({ threadId }: KnowledgeBaseManagerProps) =>
disabled={deleteMutation.isPending} disabled={deleteMutation.isPending}
> >
{deleteMutation.isPending ? ( {deleteMutation.isPending ? (
<div className="animate-spin rounded-full h-4 w-4 border-b-2 border-current mr-2" /> <Loader2 className="h-4 w-4 animate-spin" />
) : ( ) : (
<Trash2 className="h-4 w-4" /> <Trash2 className="h-4 w-4" />
)} )}