Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TOOL-2809] Nebula - make the chat card a link in chat history page #5812

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,14 @@ function SessionCard(props: {
});

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

<Popover>
<PopoverTrigger asChild>
<Button className="h-auto w-auto p-1.5" variant="ghost">
<Button
className="relative z-10 h-auto w-auto p-1.5"
variant="ghost"
>
<EllipsisIcon className="size-4 text-muted-foreground" />
</Button>
</PopoverTrigger>
Expand Down
Loading