Skip to content
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

Page responsive fix #998

Merged
merged 4 commits into from
Jul 11, 2018
Merged

Page responsive fix #998

merged 4 commits into from
Jul 11, 2018

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Jul 11, 2018

This PR not only fixes the layout on small screens of EuiPage and it's sub components, but also shifts where the sidebar lives. @snide and I talked it over and most of our designs have gone this way and it makes the most sense to keep the page header away from the sidebar.

Before (moving sidebar)

screen shot 2018-07-10 at 20 10 49 pm

After (moving sidebar)

screen shot 2018-07-10 at 20 09 41 pm

And it still works with centered content
screen shot 2018-07-10 at 20 09 53 pm

Before (responsive)

screen shot 2018-07-10 at 20 11 06 pm

After (responsive)

screen shot 2018-07-10 at 20 11 35 pm

The non-existent padding around the sidebar is on purpose so that the toggle button would expand the whole width.


I checked Kibana master to make sure it wouldn't break too many layouts and, at least in master, no one has used the EuiPageHeader or EuiPageSidebar, so no current layouts should break. The only place it is used is in the plugin generator, but that's a quick fix.

@chandlerprall
Copy link
Contributor

jenkins test this

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cchaos
Copy link
Contributor Author

cchaos commented Jul 11, 2018

I also checked with Cloud, and they only use part of the Page components in a couple places, so it shouldn't be too much of chore to update.

@cchaos cchaos merged commit b778461 into elastic:master Jul 11, 2018
@cchaos cchaos deleted the page-responsive-fix branch July 11, 2018 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants