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:
parent
b4ef503037
commit
f52d40cce5
5
.changeset/happy-ways-suffer.md
Normal file
5
.changeset/happy-ways-suffer.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@primer/css': patch
|
||||
---
|
||||
|
||||
Prevents main content to blowout and cause an horizontal scroll
|
@ -152,6 +152,7 @@
|
||||
}
|
||||
|
||||
.Layout-main {
|
||||
min-width: 0;
|
||||
|
||||
// Centered main column
|
||||
// FIXME: right-aligned sidebar
|
||||
|
Loading…
Reference in New Issue
Block a user