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

Add scroll bar when more layers added #254

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

junqiu-lei
Copy link
Member

@junqiu-lei junqiu-lei commented Feb 17, 2023

Description

Add scroll bar when more layers added on panel, set a max height to the layer list panel. In screen displayed layers will be maximum to 6.

image

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@junqiu-lei junqiu-lei requested a review from a team February 17, 2023 07:30
.euiDroppable {
overflow-y: auto;
overflow-x: hidden;
max-height: $euiSizeL * 8;
Copy link
Member

Choose a reason for hiding this comment

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

What is the default value of this elastic ui variable $euiSizeL?

Copy link
Member Author

Choose a reason for hiding this comment

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

Per euiSizeL is 24 px, so here max-height is 192 px. Per layer is 32 px height, maximum in screen displayed layers number is 6.

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
@junqiu-lei
Copy link
Member Author

The unit test and e2e failed due to opensearch-project/OpenSearch-Dashboards@de89c52#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R136, also found in other plugins, asked @zhongnansu for helping look into it

@VijayanB
Copy link
Member

Did you check moving layers still works?

@junqiu-lei
Copy link
Member Author

Did you check moving layers still works?

Yes, it works

@VijayanB VijayanB linked an issue Feb 20, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #254 (3756a99) into main (816ce79) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #254   +/-   ##
=======================================
  Coverage   91.66%   91.66%           
=======================================
  Files          10       10           
  Lines         264      264           
  Branches       34       34           
=======================================
  Hits          242      242           
  Misses         16       16           
  Partials        6        6           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@junqiu-lei junqiu-lei merged commit f3d21b9 into opensearch-project:main Feb 21, 2023
@junqiu-lei junqiu-lei deleted the scroll_layer branch February 21, 2023 01:04
@junqiu-lei junqiu-lei self-assigned this Feb 21, 2023
@junqiu-lei junqiu-lei added backport 2.x enhancement New feature or request labels Feb 21, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
(cherry picked from commit f3d21b9)
junqiu-lei added a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
(cherry picked from commit f3d21b9)

Co-authored-by: Junqiu Lei <junqiu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add scroll bar to layer panel
4 participants