Skip to content

Fix truncated page titles in auto-generated social preview image (RND-11313) - #4441

Closed
zenoachtig wants to merge 2 commits into
mainfrom
claude/tender-allen-nnv5yd
Closed

Fix truncated page titles in auto-generated social preview image (RND-11313)#4441
zenoachtig wants to merge 2 commits into
mainfrom
claude/tender-allen-nnv5yd

Conversation

@zenoachtig

Copy link
Copy Markdown
Contributor

Proposed changes

On the auto-generated social/link preview image (og:image / twitter:image), long page titles were cut off — e.g. "Agenda de contactos | Zureo Lite". The title was rendered at a fixed text-8xl (96px) with leading-none, so it overflowed the fixed 630px-tall image and got cropped, and any title over 64 characters was additionally hard-truncated with an ellipsis. The fix scales the title font size down as the title grows (96 → 72 → 60 → 48px) so it wraps across a few lines and stays within the image, and raises the truncation cap to 128 characters so full titles are shown. This is night-shift draft work for Zeno to review.

Changelog

  • [Fix] Long page titles are no longer cut off in the auto-generated social/link preview image.

Generated by Claude Code

claude added 2 commits July 27, 2026 00:12
The OG/social preview image rendered the page title at a fixed text-8xl
size with leading-none, so long titles overflowed the fixed 630px image
and were cropped, and titles over 64 chars were hard-truncated with an
ellipsis. Scale the title font size down as the title grows so it wraps
across a few lines and fits, and raise the truncation cap so full titles
are shown.

RND-11313

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQmPMoCedddS7JXBJYLk6v
@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

RND-11313

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7c0a93c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci

argos-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 22 changed, 7 ignored Jul 27, 2026, 12:26 AM
customers-v2-vercel (Inspect) ⚠️ Changes detected (Review) 18 changed, 4 ignored Jul 27, 2026, 12:22 AM
v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 2 changed, 3 ignored Jul 27, 2026, 12:24 AM
v2-vercel (Inspect) ⚠️ Changes detected (Review) 1 changed, 4 ignored Jul 27, 2026, 12:23 AM

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.

2 participants