Skip to content

Commit b2e60f5

Browse files
committed
[TOOL-2809] Nebula - make the chat card a link in chat history page
1 parent fd4664a commit b2e60f5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

apps/dashboard/src/app/nebula-app/(app)/chat/history/ChatHistoryPage.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,14 @@ function SessionCard(props: {
175175
});
176176

177177
return (
178-
<div className="overflow-hidden rounded-lg border bg-muted/50 p-4">
178+
<div className="relative overflow-hidden rounded-lg border bg-muted/50 p-4">
179179
<h3 className="line-clamp-3 break-all">
180-
{props.session.title || "Untitled"}
180+
<Link
181+
className="before:absolute before:inset-0"
182+
href={`/chat/${props.session.id}`}
183+
>
184+
{props.session.title || "Untitled"}
185+
</Link>
181186
</h3>
182187
<div className="mt-4 flex items-center justify-between gap-6 border-t pt-3">
183188
<p className="text-muted-foreground text-sm">
@@ -189,7 +194,10 @@ function SessionCard(props: {
189194

190195
<Popover>
191196
<PopoverTrigger asChild>
192-
<Button className="h-auto w-auto p-1.5" variant="ghost">
197+
<Button
198+
className="relative z-10 h-auto w-auto p-1.5"
199+
variant="ghost"
200+
>
193201
<EllipsisIcon className="size-4 text-muted-foreground" />
194202
</Button>
195203
</PopoverTrigger>

0 commit comments

Comments
 (0)