-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
[sql lab] Make sql editor resizable #3242
Conversation
Coverage remained the same at 69.34% when pulling 8c9a8311f5b4909e6fcbd8bffe8b6df917ec8c2f on dmigo:master into 4c3313b on apache:master. |
Coverage remained the same at 69.34% when pulling a4079c3391b884badb32886371fb9f3ad1007e67 on dmigo:master into 4c3313b on apache:master. |
Coverage remained the same at 69.34% when pulling 78c00e3fbfcb15c1269f845c2e8be9d4341b5e88 on dmigo:master into 4c3313b on apache:master. |
1 similar comment
Coverage remained the same at 69.34% when pulling 78c00e3fbfcb15c1269f845c2e8be9d4341b5e88 on dmigo:master into 4c3313b on apache:master. |
Glad to see you're working on this. There was some issues in SQL Lab around resizing the window where the height of some components wouldn't be altered as they should. Please make sure resizing the window work well along with this set of changes. |
@mistercrunch I encountered 2 problems with resizing while working on this PR. Update: tried to resize the browser's window in different ways - seems to work. |
Coverage increased (+0.2%) to 69.311% when pulling ab0e0165e7e51cde05f5ee5dcf8a7d34ce2084f8 on dmigo:master into ef7e9dd on apache:master. |
Coverage remained the same at 69.311% when pulling ab0e0165e7e51cde05f5ee5dcf8a7d34ce2084f8 on dmigo:master into ef7e9dd on apache:master. |
1 similar comment
Coverage remained the same at 69.311% when pulling ab0e0165e7e51cde05f5ee5dcf8a7d34ce2084f8 on dmigo:master into ef7e9dd on apache:master. |
Coverage remained the same at 69.311% when pulling 6f07444157cb45e7bce5148f6a89400979672b7e on dmigo:master into ef7e9dd on apache:master. |
2 similar comments
Coverage remained the same at 69.311% when pulling 6f07444157cb45e7bce5148f6a89400979672b7e on dmigo:master into ef7e9dd on apache:master. |
Coverage remained the same at 69.311% when pulling 6f07444157cb45e7bce5148f6a89400979672b7e on dmigo:master into ef7e9dd on apache:master. |
I pulled the branch and tried it. It mostly works but it's a little funky. We went from single-page app to no-quite that where there's one too many scrollbars on the lower right panel. I don't think the lower-right panel should have a fixed height anymore. Meaning if/when you scroll down to look at the data in the result pane the SQL Editor would flow out of the screen, leaving more place for to browse the results. |
I'd also like to have a minimum height constraint on the SQL editor, so that users can't get confused as to it completely disappearing. |
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.
no scroll on the lower right and minimum height on SQL editor
@mistercrunch got it 👍 |
@mistercrunch
On the lower right many tabs have Another one possible solution would be to have one common scroller for the page. Instead of two separate scrollers for the two columns we have. We could also go the jsfiddle way. it is simply not possible to extend anything there so, that some part of the page goes beyond the screen. |
1 similar comment
2 similar comments
Right, sorry I didn't think that through. Then it should probably just be a full-page app, same as jsfiddle works for me. |
@mistercrunch |
1 similar comment
@mistercrunch it is ready in terms of code. Should I squash all the changes into one commit? |
2 similar comments
Not need to squash, we use the Github "Squash and merge" button. Let me try it out! |
@dmigo found a bug related to this, when popping a new tab things don't init right: |
This reverts commit 75e69f0.
@mistercrunch sorry, didn't notice the comment in time. Did #3363 solved all the problems? |
Everything is good now, leveraging |
Implements #2237
The idea of this PR is to be able to resize the editor of the sql lab.