-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(explore): make horizontal scroll appears in data panel #13566
Conversation
Merge master change
Merge master
/testenv up |
@kgabryje ^ you wanna take a look and let us know your thoughts? thanks! |
@stephenLYZ could you fix the lint in this PR? |
@junlincc Container image not yet published for this PR. Please try again when build is complete. |
@junlincc Ephemeral environment creation failed. Please check the Actions logs for details. |
@zhaoyongjie done |
@@ -271,7 +271,7 @@ export const DataTablesPane = ({ | |||
height: 100%; | |||
|
|||
.ant-collapse-content { | |||
height: 100%; | |||
height: calc(100% - 33px); |
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.
Can we use theme.gridUnit * 8
instead of 33px
?
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.
ye!It's better than hardcode
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.
done, please review @kgabryje, thanks!
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.
LGTM
1 nit, other than that LGTM. |
How about show all columns like chart table which is responsive? |
Codecov Report
@@ Coverage Diff @@
## master #13566 +/- ##
==========================================
- Coverage 77.53% 73.11% -4.43%
==========================================
Files 904 615 -289
Lines 45986 21876 -24110
Branches 5552 5812 +260
==========================================
- Hits 35657 15995 -19662
+ Misses 10195 5738 -4457
- Partials 134 143 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM!
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.
Responsiveness is probably better in this case. lets merge! 🎉 thank you stephen!!
) * fix(explore): make horizontal scroll appear * fix(explore): 34px -> 33px * fix(lint): dataTablesPane lint * fix(lint): prettier dataTablesPane * fix(explore): use gridUnit rather than hardcode Co-authored-by: liuyaozong <[email protected]>
SUMMARY
Because the height of the tabpanel is higher than the height of the outer parent, the horizontal scroll bar is squeezed below.
Here need to minus some height to show horizontal scroll bar. Also the pagination's padding-bottom should be set to zero which causes a row is appearing bellow the component.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
After
TEST PLAN
ADDITIONAL INFORMATION