Skip to content

fix: configure name scale in package og#1466

Merged
danielroe merged 10 commits intonpmx-dev:mainfrom
alexdln:fix/og-name-size
Feb 13, 2026
Merged

fix: configure name scale in package og#1466
danielroe merged 10 commits intonpmx-dev:mainfrom
alexdln:fix/og-name-size

Conversation

@alexdln
Copy link
Member

@alexdln alexdln commented Feb 13, 2026

Configured the font-size scale for the name in open-graph preview for packages. The maximum characters count is 40, with a gradual decrease

I also changed the font everywhere to mono, as it is more brand-focused for us

Screenshots Default - before / after image image

before / after
image

image

before / after

image image

before / after

image image

Closes #1410
Based on #570

@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 13, 2026 2:46pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 13, 2026 2:46pm
npmx-lunaria Ignored Ignored Feb 13, 2026 2:46pm

Request Review

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
app/components/OgImage/Package.vue 92.30% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@alexdln alexdln marked this pull request as draft February 13, 2026 11:58
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 13, 2026

📝 Walkthrough

Walkthrough

The PR updates OG image components to truncate and scale package titles dynamically (adds MAX_LOGO_SYMBOLS, titleTruncated, titleScale), tweaks title and container spacing/typography (switch to Geist Mono for OG images, adjusted tracking and margins), reduces package icon inner padding (p-4 → p-3.5), and changes version display to resolvedVersion ?? version. It also adds an ogImage.defaults.fonts configuration in nuxt.config.ts listing Geist and Geist Mono font files. Data fetching and error handling remain unchanged.

Possibly related PRs

Suggested reviewers

  • danielroe
🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Merge Conflict Detection ⚠️ Warning ❌ Merge conflicts detected (7 files):

⚔️ app/components/OgImage/Default.vue (content)
⚔️ app/components/OgImage/Package.vue (content)
⚔️ nuxt.config.ts (content)
⚔️ test/e2e/og-image.spec.ts-snapshots/og-image-for--.png (content)
⚔️ test/e2e/og-image.spec.ts-snapshots/og-image-for--package-nuxt-v-3-20-2.png (content)
⚔️ uno-preset-a11y.ts (content)
⚔️ uno-preset-rtl.ts (content)

These conflicts must be resolved before merging into main.
Resolve conflicts locally and push changes to this branch.
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The PR description clearly relates to the changeset, explaining font-size scaling for package names and monospace font implementation across OG images.
Linked Issues check ✅ Passed The PR successfully implements the core objective from #1410: reducing package name font size on OG images when text exceeds a certain length via dynamic scaling.
Out of Scope Changes check ✅ Passed All changes directly support the stated objectives: font configuration additions, monospace styling, dynamic title truncation/scaling, and minor layout adjustments align with the PR intent.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch fix/og-name-size
  • Post resolved changes as copyable diffs in a comment

No actionable comments were generated in the recent review. 🎉

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

👌

@danielroe danielroe added this pull request to the merge queue Feb 13, 2026
Merged via the queue into npmx-dev:main with commit 775e4b8 Feb 13, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reduce size of package name text on OG images when over a certain length

3 participants