-
Notifications
You must be signed in to change notification settings - Fork 3
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: Minimum dashboard chart sizes #1734
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
a031463
to
3454dae
Compare
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.
You are right about the free Canvas view there is still a bit of room for improvement.
Nit: Quite a lot commits, you could potentially split them up a bit? Other than that it looks fine! |
17342a5
to
763f68e
Compare
Thanks for the review @noahonyejese! You're right, I should have cleaned up the commits, as there was some exploration that didn't end up being used. I reorganized and merged the commits, so it went down from 15 to 10 👍 |
👍🏽 not too bad |
thanks a lot @bprusinowski. It so much improved already. that's fantastic. Another thing that I discovered in the free canvas step is, when increasing one of the charts (tested it with the table chart), and then clicking through the preview buttons, and after getting the sidebar to edit again, the chart is always jumping back to the minimum height: Screen.Recording.2024-09-10.at.14.55.48.mov |
Hi @KerstinFaye, thanks for testing and feedback, I'll change the label 👍 For the issue with going back to minimum height, in fact it goes back to original height set before entering the preview. I think we could either disable an ability to move the charts around and resize them while in preview mode (quick thing to do, maybe good anyway to not confuse the users?) or make it possible to edit the layouts when in preview mode, currently it's not yet implemented :/ Let me know what would make more sense from your side, I believe it could be nice to be able to edit while in preview mode to be able to e.g. optimize the mobile layout. But I'd do this in another PR 👀 |
@bprusinowski yes, I really like the ability to change the layout while in preview mode. But would it be possible to save the height and width that was set for the charts when changing between the preview buttons? So when going back to the maximum size the user sees the height that they set before? |
@KerstinFaye I think we could keep different layout configurations at all times, currently we only keep In this case I'll focus on improving this in a next PR, we could also discuss this tomorrow if the behavior is not clear 👍 |
Fixes #1732
This PR:
There's still a potential to improve the table chart in free canvas further, as it looks that compact view doesn't work as expected in small sizes and scrollbar position doesn't seem right, but this can be done in another PR, as it seems like a table issue, and not free canvas-related problem.
How to test
How to reproduce