Skip to content

[BUG] Metric Visualization text value is not fully displayed/partly truncated (CSS line height issue) #1643

@ghost

Description

Describe the bug

For metric visualizations, the displayed text is not displayed/truncated at the bottom.
It only affects letters that protrude downwards like @, p, q, j, ...

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Add new visualization'
  2. Click on 'metric'
  3. Create a new metric visualization and press save
  4. Gather data (incls. values with letters that protrude downwards like @, p , q, j...)
  5. See text value in metric visualization
  6. See error

Expected behavior
Letters of values in metric visualizations should not be truncated and be fully displayed.

OpenSearch Version
Official Docker-image: opensearchproject/opensearch:1.3.2

Dashboards Version
Official Docker-image: opensearchproject/opensearch-dashboards:1.3.2

Plugins

Please list all plugins currently enabled.

Screenshots
02_metric_vis_text_css_bug
01_metric_vis_text_css_bug

Host/Environment (please complete the following information):

  • OS: Linux/Debian
  • Browser and version: Chrome/102.0.5005.61 (Official Build) (x86_64

Additional context

Add any other context about the problem here

From my point of view the problem exists due to a missing CSS line height setting in CSS class '.mtrVis__value'
It could be fixed by adapting the following CSS settings:

From current CSS values:
.mtrVis__value {
max-width: 100%;
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
word-wrap: normal !important;
font-weight: 700;
}

To new fixed CSS values:
.mtrVis__value {
max-width: 100%;
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
word-wrap: normal !important;
font-weight: 700;
line-height: normal; # This is the fixing line
}

I hope I was able to support you at least a little and would like to thank you again for your commitment and the great product!

All the best
Patrick

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions