Skip to content

Commit 0470463

Browse files
committed
refactor: clean up code comment and any
1 parent 727b046 commit 0470463

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/components/Package/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const fundingUrl = computed(() => {
248248
:package-name="packageName"
249249
:resolved-version="resolvedVersion ?? ''"
250250
:is-latest="resolvedVersion === pkg?.['dist-tags']?.latest"
251-
:license="(displayVersion as any)?.license"
251+
:license="displayVersion?.license"
252252
/>
253253
<div
254254
ref="header"

app/components/Package/ShareModal.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const { data: downloadsData } = usePackageDownloads(
2727
'last-week',
2828
)
2929
30+
// e.g. nuxt 4.4.2 (latest) — 1.4M weekly downloads — MIT license — via npmx.dev
3031
const altText = computed(() => {
3132
const tag = props.isLatest ? 'latest' : props.resolvedVersion
3233
const parts: string[] = [`${props.packageName} ${props.resolvedVersion} (${tag})`]
@@ -90,12 +91,6 @@ function handleCopyLink() {
9091
class="sm:max-w-3xl"
9192
@close="showAlt = false"
9293
>
93-
<!--
94-
aspect-ratio matches card output (1280×520 = 2.46:1).
95-
The PNG is rendered at full 1280px, displayed inside a ~700px container —
96-
about 0.55× scale. image-rendering: high-quality ensures the browser
97-
uses a bicubic/lanczos algorithm instead of nearest-neighbour.
98-
-->
9994
<div
10095
class="bg-bg-elevated rounded-lg mb-4 overflow-hidden ring-1 ring-border-subtle"
10196
style="aspect-ratio: 1280/520"

0 commit comments

Comments
 (0)