-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix: pagination controls should not scroll horizontally for saved search #50764
Fix: pagination controls should not scroll horizontally for saved search #50764
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
e4812fd
to
ee4bdb8
Compare
💚 Build Succeeded |
Thank you @majagrubic, it's fixed now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mbondyra ! Can you also update some of these other hard-coded pixel values to be EUI variables/calculations of these variables? This way our scale stays consistent in case we change the base. I gave suggestions on how to convert them.
@@ -62,6 +62,16 @@ doc-table { | |||
margin: $euiSizeXS $euiSizeXS 0; | |||
} | |||
|
|||
.kbnDocTable__bar--footer { | |||
position: relative; | |||
margin: -48px $euiSizeXS 0 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin: -48px $euiSizeXS 0 0; | |
margin: -($euiSize * 3) $euiSizeXS 0 0; |
|
||
|
||
.kbnDocTable__padBottom { | ||
padding-bottom: 32px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding-bottom: 32px; | |
padding-bottom: $euiSizeXL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
margin: -($euiSize * 3) $euiSizeXS 0; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡️ empty line
2dfcd91
to
3f0a162
Compare
💚 Build Succeeded |
@elasticmachine merge upstream |
…ves_vertical_scrolling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected. LGTM 👍
💚 Build Succeeded |
Summary
Bug: The pagination controls in the header and footer of the saved search widget scroll along with the table.
This PR fixes the problem - the controls keep their position to the right corner of the widget.
Fixes #49757
PS. I use negative margin to include controls from the bottom above the scroll so the design doesn't change. If I haven't, it would look like here:
![image](https://user-images.githubusercontent.com/4283304/68940165-bf12d400-07a2-11ea-995a-947f8d09d073.png)
Another option to 'stick' the position of the controls would be to use JS, but I feel it's too much for this fix. Let me know what you think!
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers