-
Notifications
You must be signed in to change notification settings - Fork 121
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(tooltip): fix overflow for long series names #274
fix(tooltip): fix overflow for long series names #274
Conversation
Allow long series names in tooltip to wrap to next line fix elastic#270
src/components/_tooltip.scss
Outdated
@@ -10,35 +10,38 @@ | |||
table { | |||
border-collapse: collapse; | |||
border-spacing: 0; | |||
table-layout: fixed; |
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.
NOTE: <table>
does NOT respect relative widths without this ☝️
Codecov Report
@@ Coverage Diff @@
## master #274 +/- ##
=======================================
Coverage 98.05% 98.05%
=======================================
Files 37 37
Lines 2671 2671
Branches 613 613
=======================================
Hits 2619 2619
Misses 47 47
Partials 5 5 Continue to review full report at Codecov.
|
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.
hey @nickofthyme can you test the case of a series with a very long word like an URL for example, to break those you can use the euiOverflowWrap mixin
@nickofthyme changing the tooltip from table to list makes every line on the tooltip independent resulting in different width of the value column: I just want to ask @cchaos what she think about that. For sure is more compact and nice but I'd like a design opinion on that |
I don't have a strong opinion either way, however if there's space to show more of the series label then it's nice to use it. |
🎉 This PR is included in version 8.1.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [8.1.7](elastic/elastic-charts@v8.1.6...v8.1.7) (2019-08-05) ### Bug Fixes * **tooltip:** fix overflow for long series names ([opensearch-project#274](elastic/elastic-charts#274)) ([e80758f](elastic/elastic-charts@e80758f)), closes [opensearch-project#270](elastic/elastic-charts#270)
Summary
Allow long series names in tooltip to wrap to next line
fix #270
Before
After
Checklist