Skip to content

fix: scale template overview title to avoid line wrap#483

Draft
drankou wants to merge 2 commits into
mainfrom
scale-template-title-font
Draft

fix: scale template overview title to avoid line wrap#483
drankou wants to merge 2 commits into
mainfrom
scale-template-title-font

Conversation

@drankou

@drankou drankou commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Long template names wrapped onto multiple lines in the overview header because the title was fixed at 32px. The title now scales down by character count (via a CSS container query) between 16px and 32px, staying on one line for all but extreme names. The new prose-value-big-fit utility does this in pure CSS — no JS measurement — leaning on the title's existing monospace font (glyph advance ≈ 0.6em).

Before After
CleanShot 2026-06-30 at 13 35 03@2x CleanShot 2026-06-30 at 13 34 14@2x

Title font is scaled between 15-32px, otherwise will still wrap.

The overview title was fixed at 32px and wrapped onto multiple lines for
long template names. Add a `prose-value-big-fit` utility that scales the
monospace title down by character count (via a container query) between
16px and 32px, and stack the template ID below the name instead of beside it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cla-bot cla-bot Bot added the cla-signed label Jun 30, 2026
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 30, 2026 11:30am

Request Review

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant