Skip to content

Commit

Permalink
Merge pull request #279 from shelwinsunga/home-page-cards
Browse files Browse the repository at this point in the history
[ell-studio] Update Home Page Card Click Area
  • Loading branch information
MadcowD authored Oct 3, 2024
2 parents 3d73ede + 74f5edf commit 6b49d43
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions ell-studio/src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,23 @@ print(greeting)`}
<ScrollArea className="h-screen">
<div className="space-y-4 p-4">
{lmps.map((lmp) => (
<Card
key={lmp.name}
className="cursor-pointer hover:bg-accent/50 transition-colors duration-200"
onClick={(e) => toggleExpand(lmp.name, e)}
<Link
to={`/lmp/${lmp.name}`}
className="flex cursor-pointer hover:bg-accent/50 transition-colors duration-200"
onClick={(e) => e.stopPropagation()}
>
<Card
key={lmp.name}
className="cursor-pointer hover:bg-accent/50 rounded transition-colors duration-200"
onClick={(e) => toggleExpand(lmp.name, e)}
>
<CardHeader>
<div className="flex flex-col space-y-2">
<Link
to={`/lmp/${lmp.name}`}
className="text-xl font-semibold text-foreground hover:text-primary break-words"
onClick={(e) => e.stopPropagation()}
<div
className="text-xl font-semibold text-foreground hover:text-primary break-words cursor-pointer"
>
{lmp.name}
</Link>
</div>
<div className="flex space-x-2">
<span className="text-xs px-2 py-1 rounded-full bg-muted text-muted-foreground">
ID: {truncateId(lmp.lmp_id)}
Expand All @@ -150,6 +153,7 @@ print(greeting)`}
</div>
</CardContent>
</Card>
</Link>
))}
</div>
</ScrollArea>
Expand Down

0 comments on commit 6b49d43

Please sign in to comment.