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 truncation of long filter bar items #43874

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Aug 23, 2019

Fixes #35225

By porting over the SASS and classNames from the fix in EUI.

How it behaves now

Screen Shot 2019-08-23 at 11 58 52 AM

Wrapping still works

Screen Shot 2019-08-23 at 11 59 26 AM

Works in IE
Screen Shot 2019-08-23 at 12 18 37 PM

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@cchaos cchaos requested a review from a team as a code owner August 23, 2019 16:08
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

I pulled in the code and checked it in Chrome only.
LGTM.

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Reviewed the code and my only question (wrapping) was handled in the description of the PR (ty for screenshots!).

LGTM.

@@ -25,6 +25,15 @@
transition: height $euiAnimSpeedNormal $euiAnimSlightResistance;
}

.globalFilterGroup__filterFlexItem {
overflow: hidden;
padding-bottom: 2px; // Allow the shadows of the pills to show
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh, ty for this. This bugged me forever.

@cchaos cchaos force-pushed the fix-filter-bar-truncation branch from a59aaf9 to 1a845c4 Compare August 27, 2019 20:07
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@Bargs Bargs left a comment

Choose a reason for hiding this comment

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

LGTM

@cchaos cchaos merged commit 670f1ae into elastic:master Aug 27, 2019
@cchaos cchaos deleted the fix-filter-bar-truncation branch August 27, 2019 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Filters release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The window to edit filters is mispositioned if the filter is too long
5 participants