1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 14:14:26 +03:00

Prevent content to increase main's size (#1486)

Based on https://css-tricks.com/preventing-a-grid-blowout/

If main's content was large enough, it would cause `main` to grow more than it should and push `sidebar` to the side, causing an horizontal scroll on pages.

| Before | After |
|--------|--------|
| ![image](https://user-images.githubusercontent.com/11280312/124145356-56996900-da52-11eb-954d-8b6a44d85cea.png) | ![image](https://user-images.githubusercontent.com/11280312/124145395-5e590d80-da52-11eb-9024-175c2de360ad.png) |
This commit is contained in:
Manuel Puyol 2021-07-02 09:35:28 -05:00 committed by GitHub
parent b4ef503037
commit f52d40cce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
'@primer/css': patch
---
Prevents main content to blowout and cause an horizontal scroll

View File

@ -152,6 +152,7 @@
}
.Layout-main {
min-width: 0;
// Centered main column
// FIXME: right-aligned sidebar