Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Lucas Oliveira
23fa61bf28 fixed selected filter not truncating right 2025-10-01 16:48:25 -03:00
Lucas Oliveira
549cd553d6 Added truncation on name and description for knowledge filters 2025-09-29 11:39:53 -03:00

View file

@ -2345,12 +2345,14 @@ function ChatPage() {
<button
key={filter.id}
onClick={() => handleFilterSelect(filter)}
className={`w-full text-left px-2 py-2 text-sm rounded hover:bg-muted/50 flex items-center justify-between ${
className={`w-full overflow-hidden text-left px-2 py-2 gap-2 text-sm rounded hover:bg-muted/50 flex items-center justify-between ${
index === selectedFilterIndex ? "bg-muted/50" : ""
}`}
>
<div>
<div className="font-medium">{filter.name}</div>
<div className="overflow-hidden">
<div className="font-medium truncate">
{filter.name}
</div>
{filter.description && (
<div className="text-xs text-muted-foreground truncate">
{filter.description}
@ -2358,7 +2360,7 @@ function ChatPage() {
)}
</div>
{selectedFilter?.id === filter.id && (
<div className="w-2 h-2 rounded-full bg-blue-500" />
<div className="w-2 h-2 shrink-0 rounded-full bg-blue-500" />
)}
</button>
))}