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
Make table visualization header fixed #5103
Make table visualization header fixed #5103
Conversation
If you want to add this feature to query page, you just add this css to query page. |
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 for your contribution @yankeeguyu 😁, I synced your branch with master so we can check it in our preview environment and moved the styling into a new className. I may make one more adjustment into the border before merging this.
And another question, this feature can be add in query page? I can't find query style. Thank you! |
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.
Please add this.
left: 0; | ||
top: 0; | ||
border-top: hidden; | ||
background: #fafafa !important; |
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.
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.
NP, we can keep the !important
, I was actually gonna ask you the reason for both that and the z-index
.
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.
Haha...your NP means Chinese good? Thanks! At first i added z-index
because of my wrong idea, now i want to correct this. I didn't test all feature, it's my fault.
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.
Sorry, NP = No Problems.
Don't worry, I already removed the z-index
. Considering this is something we wanted for quite a long time, I'll just try to refine the border myself tomorrow (it has a 1 px border that doesn't follow the sticky
) and after some more tests it should be ready to go 🙂.
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.
Sorry, NP = No Problems.
Don't worry, I already removed the z-index. Considering this is something we wanted for quite a long time, I'll just try to refine the border myself tomorrow (it has a 1 px border that doesn't follow the sticky) and after some more tests it should be ready to go 🙂.Ok, if you perfect this feature, tell me, i want to add in my online redash. Thank you.
It should be working in the query page too, as that styling is applied to both pages |
But for the query page it seems to only work for the desktop version, which has a fixed area for the visualization as well as the Dashboard version |
We had a big restyling in the Query Pages after v9-beta, so it's probably the reason it behaves differently here. |
Ok, i knew it. |
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.
viewed.
Thanks, this change is good to me. Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Thanks @gabrieldutra , it's a very pleasant PR. |
@gabrieldutra will this be compatible with Ant v4? |
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.
From a product perspective this looks good. Thank you, @yankeeguyu !
@gabrieldutra @kravets-levko up to you to decide when to merge based on code review.
Thank you. My honor. |
At last, if this feature adds into query page, it will be perfect! |
@arikfr for me this is good to go, I've already made all the updates I wanted 🙂. As for Antd v4, I've just tested, it works, I might need to tweak class names, but will sync after merge. Another thing to be handled is the Search feature: But I can do this one in a follow up PR, or in the Antd v4 one (I think it's easier as I moved the Search to above the header) |
Merged, thank you very much @yankeeguyu 🎉. Also, consider upgrading your Redash version, it seems you already have a couple of reasons to do that :) |
Ok, i will consider it. |
Hi @gabrieldutra , you moved Seach to above header? If you did, i want to use your PR, thanks! |
@yankeeguyu you can check f53ac0d, but adding a |
Thank you @gabrieldutra . I solved it. |
* add lock table header * Move styling to a new class * Update renderer.less * Move class to table and fix top border * Update renderer.less * Update viz-lib/src/visualizations/table/renderer.less Thanks, this change is good to me. Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com> Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
What type of PR is this? (check all applicable)
Description
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)