Skip to content
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
7 changes: 4 additions & 3 deletions app/pages/[...package].vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,12 @@ defineOgImageComponent('Package', {
</dd>
</div>

<div v-if="getDependencyCount(displayVersion) > 0" class="space-y-1">
<div class="space-y-1">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arguably this could be its own change, as a precursor for right-aligning the last column (right aligning without showing deps looks pretty bad). Happy to break it up into separate PR's if you want.

<dt class="text-xs text-fg-subtle uppercase tracking-wider">Deps</dt>
<dd class="font-mono text-sm text-fg flex items-baseline justify-start gap-2">
{{ getDependencyCount(displayVersion) }}
<a
v-if="getDependencyCount(displayVersion) > 0"
:href="`https://npmgraph.js.org/?q=${pkg.name}`"
target="_blank"
rel="noopener noreferrer"
Expand Down Expand Up @@ -462,8 +463,8 @@ defineOgImageComponent('Package', {
</div>

<div v-if="pkg.time?.modified" class="space-y-1">
<dt class="text-xs text-fg-subtle uppercase tracking-wider">Updated</dt>
<dd class="font-mono text-sm text-fg">
<dt class="text-xs text-fg-subtle uppercase tracking-wider text-right">Updated</dt>
<dd class="font-mono text-sm text-fg text-right">
<NuxtTime :datetime="pkg.time.modified" date-style="medium" />
</dd>
</div>
Expand Down