Skip to content
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 Sqllab a one-page app -- body not scrollable #1551

Merged
merged 3 commits into from
Nov 9, 2016

Conversation

vera-liu
Copy link
Contributor

@vera-liu vera-liu commented Nov 6, 2016

Previously I made left-bar and right-panel scrollable in sqllab https://github.com/airbnb/caravel/pull/1532#pullrequestreview-6951086
however it introduced two scroll bars on the right (one for App one for right panel). I am making App non-scrollable in this PR, so that user can only scroll left-bar and right-panel.

giphy 4

needs-review @mistercrunch

@mistercrunch
Copy link
Member

Won't that make it impossible to see the bottom of the panes?

@vera-liu
Copy link
Contributor Author

vera-liu commented Nov 6, 2016

The user could reach the bottom of panes by scrolling the right editor. I thought we want left-bar and right-panel to be scrollable independently, If both parts are scrollable and user could reach the bottom of all the content it should be fine?

@mistercrunch
Copy link
Member

I tried this version and I can't reach the bottom of either pane while scrolling.

@vera-liu
Copy link
Contributor Author

vera-liu commented Nov 7, 2016

Ahh I see. I added a container and content as we have in explorev2 and now it is working. I'm not a css expert so I'm not sure if there's a better way. So far this approach seems clearer than calculating tab-size and navbar size dynamically.

bottom: 0px;
overflow: scroll;
margin-right: 0px;
margin-bottom: 100px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where's that 100px coming from? Is it to offset the navbar + tabbar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's just the margin between panel/left-bar and bottom of browser window, in case they are too close and look like being cutoff

@mistercrunch
Copy link
Member

@vera-liu rebase plz

@vera-liu vera-liu force-pushed the vliu_sqllab_nonscrollable branch from c3e1a94 to 7f19904 Compare November 9, 2016 17:40
@vera-liu vera-liu force-pushed the vliu_sqllab_nonscrollable branch from 7f19904 to c4a31e5 Compare November 9, 2016 20:20
@mistercrunch mistercrunch merged commit d70a744 into apache:master Nov 9, 2016
@vera-liu vera-liu deleted the vliu_sqllab_nonscrollable branch November 14, 2016 21:32
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.13.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants