Skip to content
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

Horizontal overflow on the blog pages #11110

Open
3 tasks done
pepelsbey opened this issue May 13, 2024 · 0 comments
Open
3 tasks done

Horizontal overflow on the blog pages #11110

pepelsbey opened this issue May 13, 2024 · 0 comments
Assignees
Labels
blog 🐛 bug Something isn't working, or isn't working as expected layout Issues related to alignment, positioning and spacing/margin/padding Responsiveness

Comments

@pepelsbey
Copy link
Contributor

pepelsbey commented May 13, 2024

Summary

Posts in the MDN blog cause overflow on mobile screens narrower than 403 px. It’s caused by code blocks. On regular MDN pages, it doesn’t happen.

URL

https://developer.mozilla.org/en-US/blog/mdn-blog-one-year-on/
https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius

Reproduction steps

Go to a blog post with code samples with a narrow viewport, for example

Expected behavior

No horizontal scrolling, at least down to a 375 px wide screen.

Actual behavior

Horizontal scrolling and content overflow.

Device

Desktop

Browser

Firefox

Browser version

Stable

Operating system

Mac OS

Screenshot

Screenshots

By default, on a 375 px wide screen
code

With code blocks hidden
no-code

Anything else?

If you hide .code-example blocks in DevTools with display: none, the scrolling is gone.

Validations

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 13, 2024
@mirunacurtean mirunacurtean added 🐛 bug Something isn't working, or isn't working as expected layout Issues related to alignment, positioning and spacing/margin/padding blog Responsiveness and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels May 16, 2024
@caugner caugner self-assigned this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog 🐛 bug Something isn't working, or isn't working as expected layout Issues related to alignment, positioning and spacing/margin/padding Responsiveness
Projects
None yet
Development

No branches or pull requests

3 participants