-
Notifications
You must be signed in to change notification settings - Fork 515
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
fix(blog): avoid overflow + double padding #12508
Conversation
Previously, we were adding 1rem of horizontal padding both on `<main>` and `<article>`. Now, we only add it on the `<article>`, to be consistent with content pages.
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Fixes #11110.
Problem
Blog posts were overflowing on smaller screens, and the horizontal padding was too big.
Solution
max-width: 52rem
on larger screens, to avoid overflow on smaller screens.<article>
, not also on the<main>
element.Screenshots
How did you test this change?
Ran
yarn build:prepare && yarn start
, then visited http://localhost:5042/en-US/blog/javascript-temporal-is-coming/ locally.