Skip to content

[Canvas] Fix workpad list overflow#37345

Merged
ryankeairns merged 3 commits intoelastic:masterfrom
ryankeairns:rk/24773-home-width
Jun 4, 2019
Merged

[Canvas] Fix workpad list overflow#37345
ryankeairns merged 3 commits intoelastic:masterfrom
ryankeairns:rk/24773-home-width

Conversation

@ryankeairns
Copy link
Copy Markdown
Contributor

Fixes #24773

Summary

Prevent the workpad list from overflowing its parent panel on smaller devices.

The issue here is that we're using euiModal styles to present what is actually page body content. On smaller devices, modals (.euiModalBody) are set to 100vw so that they take up the full viewport width.

The quick fix here is to just override that rule in this particular case. Swapping out for a panel, while more correct, comes with other issues as this same markup is presented as a modal when you open the workpad switcher from the workpad/page view as opposed to opening it from the home page.

Viewed at < 768px

Screenshot 2019-05-29 09 55 05

Checklist

@ryankeairns ryankeairns added bug Fixes for quality problems that affect the customer experience release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort v8.0.0 v7.3.0 labels May 29, 2019
@ryankeairns ryankeairns requested review from cqliu1 and w33ble May 29, 2019 16:05
@ryankeairns ryankeairns requested review from a team as code owners May 29, 2019 16:05
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-canvas

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Is there anyway we can make the filepicker full width here on small screens? It looks a little odd, but you don't have to address it in this PR.

@ryankeairns ryankeairns requested a review from cqliu1 May 29, 2019 20:35
@ryankeairns
Copy link
Copy Markdown
Contributor Author

@cqliu1 made the file picker full width on small screens.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

Perfect 👍
Screen Shot 2019-05-29 at 3 11 08 PM

@ryankeairns
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ryankeairns ryankeairns force-pushed the rk/24773-home-width branch from c235e60 to 805dce2 Compare May 30, 2019 14:13
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ryankeairns ryankeairns force-pushed the rk/24773-home-width branch from 805dce2 to c5e0ee4 Compare May 30, 2019 16:07
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ryankeairns
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ryankeairns ryankeairns force-pushed the rk/24773-home-width branch from c5e0ee4 to 4d6f1b9 Compare May 30, 2019 19:21
Copy link
Copy Markdown
Contributor

@w33ble w33ble left a comment

Choose a reason for hiding this comment

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

Confirmed fixed on the home screen and the modal view 👍

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Some small stuff. I'd check on your modal. Likely some small fixes there to get it working correct.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ryankeairns ryankeairns force-pushed the rk/24773-home-width branch from e0f0982 to 2346210 Compare May 31, 2019 16:38
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@ryankeairns
Copy link
Copy Markdown
Contributor Author

@snide when you have a minute, can you re-check this one quick. I made some small changes based upon your requested changes.

Copy link
Copy Markdown
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

checked the latest locally. LGTM

@ryankeairns ryankeairns merged commit beb651f into elastic:master Jun 4, 2019
jgowdyelastic pushed a commit that referenced this pull request Jun 4, 2019
* fix workpad list overflow

* make file picker full width on small devices

* fix modal height, add comments
ryankeairns added a commit to ryankeairns/kibana that referenced this pull request Jun 5, 2019
* fix workpad list overflow

* make file picker full width on small devices

* fix modal height, add comments
ryankeairns added a commit to ryankeairns/kibana that referenced this pull request Jun 5, 2019
* fix workpad list overflow

* make file picker full width on small devices

* fix modal height, add comments
ryankeairns added a commit that referenced this pull request Jun 5, 2019
* fix workpad list overflow

* make file picker full width on small devices

* fix modal height, add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience loe:small Small Level of Effort release_note:fix review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.3.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Canvas workpads page spilling out of the container on a narrow screen

5 participants