Skip to content

[Docs]: USe wbr to break a long title on mobile #74076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

molebox
Copy link
Collaborator

@molebox molebox commented Dec 18, 2024

The title for this page https://nextjs.org/docs/app/api-reference/config/next-config-js/serverComponentsHmrCache is too long on mobile and causes overflow. This PR encodes the <wbr/> element (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr) to attempt to solve.

@ijjk ijjk added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Dec 18, 2024
@@ -1,5 +1,5 @@
---
title: serverComponentsHmrCache
title: serverComponents&lt;wbr /&gt;HmrCache
Copy link
Member

Choose a reason for hiding this comment

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

I think this gets read directly for metadata, so this might not work

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, im not actually sure, as its hooked into content layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants