Skip to content

Commit

Permalink
added max width to base layout to match component layout width (#623)
Browse files Browse the repository at this point in the history
* added max width to base layout to match component layout width

* Create tasty-snakes-end.md

* Update theme/src/components/layout.js

* Update tasty-snakes-end.md

* Update theme/src/components/layout.js

* width test

* fixed
  • Loading branch information
emilybrick authored Aug 18, 2023
1 parent 8ba78e5 commit d03feaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-snakes-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/gatsby-theme-doctocat": patch
---

- Add maxWidth: '1200' to the base layout container so that content widths are consistent across primer.style docs
2 changes: 2 additions & 0 deletions theme/src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ function Layout({children, pageContext, path}) {
justifyContent: 'center',
flexDirection: 'row-reverse',
display: 'flex',
maxWidth: '1200px',
mx: 'auto',
width: '100%',
p: [4, 5, 6, 7]
}}
Expand Down

0 comments on commit d03feaa

Please sign in to comment.