Skip to content

fix(website): constrain resource detail content on mobile (#2828) - #2833

Closed
LuckTerence wants to merge 1 commit into
github:mainfrom
LuckTerence:fix/mobile-content-overflow
Closed

fix(website): constrain resource detail content on mobile (#2828)#2833
LuckTerence wants to merge 1 commit into
github:mainfrom
LuckTerence:fix/mobile-content-overflow

Conversation

@LuckTerence

Copy link
Copy Markdown

Closes #2828

Root cause

On <=900px viewports the detail layout collapses to a single column declared as grid-template-columns: 1fr. A bare 1fr track has an auto minimum, so a wide pre/long unbreakable text sizes the track beyond the viewport and the content is clipped at the right edge (the desktop rule already uses minmax(0, 1fr), which is why only mobile is affected).

Fix

  • Mobile .detail-layout: minmax(0, 1fr) so the track can shrink and .article-content pre's existing overflow-x: auto actually kicks in (code blocks scroll horizontally instead of clipping)
  • .article-content: min-width: 0 + overflow-wrap: break-word so long text/URLs wrap within the viewport

Applies to all resource detail pages (extensions, plugins, agents, instructions, skills) since they share .detail-layout / .article-content. No markup changes; the CI preview deploy should show the corrected mobile rendering.

@github-actions github-actions Bot added the website-update PR touches website content or code label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🟡 Contributor Reputation Check: MEDIUM risk

Check Risk
Profile MEDIUM
Credential audit NONE

Maintainers: please review this contributor before merging.
See the workflow run for full details.
Automated check powered by AGT.

@github-actions github-actions Bot added the needs-review:MEDIUM Contributor reputation check flagged MEDIUM risk label Aug 27, 2026
@aaronpowell

Copy link
Copy Markdown
Contributor

We've got a complete design overhaul coming in #2703 so I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review:MEDIUM Contributor reputation check flagged MEDIUM risk website-update PR touches website content or code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Preview] Mobile:Content overflows the page width

2 participants