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

feat: package version in scope and search result lists #528

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
11 changes: 9 additions & 2 deletions frontend/components/PackageHit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ export function PackageHit(pkg: OramaPackageHit | Package): ListDisplayItem {
content: (
<div class="grow-1 w-full flex flex-col md:flex-row gap-2 justify-between">
<div class="grow-1">
<div class="text-jsr-cyan-700 font-semibold">
{`@${pkg.scope}/${pkg.name}`}
<div class="flex gap-2">
<span class="text-jsr-cyan-700 font-semibold">
{`@${pkg.scope}/${pkg.name}`}
</span>
{(pkg as Package).latestVersion && (
<span class="text-gray-600 max-w-20 truncate font-bold">
{`@${(pkg as Package).latestVersion}`}
</span>
)}
</div>
<div class="text-sm text-jsr-gray-600">
{pkg.description}
Expand Down
Loading