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

fix(sqllab): Remove redundant scrolling #30500

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

justinpark
Copy link
Member

@justinpark justinpark commented Oct 2, 2024

SUMMARY

This commit fixes the redundant vertical scrolling in SQL Lab caused by the bottom resize handlers, which are not used for the sidebar resizer.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

before--scrolling.mov

After:

after--scrolling.mov

TESTING INSTRUCTIONS

Go to SQL Lab and then check the scrollbar in the query panel.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot bot added the sqllab:design Related to the SQL Lab UI/UX label Oct 2, 2024
@@ -940,12 +945,14 @@ const SqlEditor: FC<Props> = ({
minWidth={SQL_EDITOR_LEFTBAR_WIDTH}
initialWidth={SQL_EDITOR_LEFTBAR_WIDTH}
enable={!hideLeftBar}
padding={leftBarPadding}
Copy link
Member

Choose a reason for hiding this comment

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

@justinpark Why does a left bar padding influences on a wrapper height? If it was a top/bottom padding, I would understand but a left one?

Copy link
Member

Choose a reason for hiding this comment

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

If this variable mean that a top padding is applied when the left bar is open, then it would be a good idea to rename the variable to make it more clear.

@pull-request-size pull-request-size bot added size/XS and removed size/S labels Oct 3, 2024
@justinpark justinpark merged commit 4dfee72 into apache:master Oct 3, 2024
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS sqllab:design Related to the SQL Lab UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants