Skip to content

Commit

Permalink
Set a max width to EuiPageBody (#3375)
Browse files Browse the repository at this point in the history
By setting a max width of EuiPageBody we can likely force inner items to not break down in various smaller screen configs.
  • Loading branch information
snide authored Apr 22, 2020
1 parent ca262a7 commit e252a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `23.1.0`.
- Applies `max-width: 100%` to `EuiPageBody` so inner flex-based items don't overflow their containers ([#3375](https://github.com/elastic/eui/pull/3375))

## [`23.1.0`](https://github.com/elastic/eui/tree/v23.1.0)

Expand Down
2 changes: 2 additions & 0 deletions src/components/page/page_body/_page_body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
flex-direction: column;
align-items: stretch;
flex: 1 1 100%;
// Make sure that inner flex layouts don't get larger than this container
max-width: 100%;

&--restrictWidth-default,
&--restrictWidth-custom {
Expand Down

0 comments on commit e252a06

Please sign in to comment.