-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Allow resizing width of SQL Lab left bar / editor #8099
Conversation
<Split | ||
ref={this.sqlEditorRef} | ||
className={this.props.hideLeftBar ? 'SqlEditor-expanded' : 'SqlEditor'} | ||
sizes={[INITIAL_WEST_PERCENT, INITIAL_EAST_PERCENT]} |
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.
do you want user's setting be persist when they reload page or switch tabs?
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.
I don't think this should be persisted, since in my experience it's more circumstantial. For some of our tables the metadata is too big and users want momentarily to expand it. What are your thoughts?
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #8099 +/- ##
=========================================
- Coverage 65.93% 65.9% -0.04%
=========================================
Files 485 485
Lines 22887 22925 +38
Branches 2521 2538 +17
=========================================
+ Hits 15090 15108 +18
- Misses 7666 7685 +19
- Partials 131 132 +1
Continue to review full report at Codecov.
|
This reverts commit ed3360b.
I am strugging to get this to work in version 35.2. Any ideas why that could be? |
CATEGORY
Choose one
SUMMARY
This PR adds a gutter for resizing the width of SQL Lab left bar and editor. Currently, the setting is not persisted, since in the cases we observed the use was more circumstantial.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Note that the gutter is not vertically centered, which I found more intuitive. I can move it to the center.
TEST PLAN
See video above.
ADDITIONAL INFORMATION
REVIEWERS
@etr2460 @graceguo-supercat