-
Notifications
You must be signed in to change notification settings - Fork 525
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
Add collapse to sidebar #380
Conversation
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.
The code looks good to me. I will test it properly later this week though.
Sorry @haivp3010, I have been traveling and I have not been having free time to review it. I will try to find someone else who can do it. |
I'll take a look |
Hey @haivp3010 thanks for Pull requests. There's an issue though. When you execute some query and collapse menu afterwards, part of the table is whitened out: Could you please take a look :) |
I think the problem is with window resize itself, so maybe it needs a separate issue/PR. I will look into that and confirm later today. |
@haivp3010 I'm seeing a couple things here...
A ternary around line 514 on the Simply setting However this only works when you collapse the sidebar first and then execute the query. It appears there's also an overall re-rendering issue in |
I made a PR, #395 that solves the re-render issue. As long as you're passing a 0 offset down when collapsing the sidebar it should cause either a re-render or a recompute of the grid size to happen. |
Cool. I'll check it today or tomorrow afternoon (European time ;) ) |
Since @s-kem has resolved re-rendering issue, I'll merge this PR. Thank you @haivp3010 👏 |
This pull request targets issue #317.
A collapse bar is put just to the left of the sidebar, making use of the space between the sidebar and the window border.