[Lens] Fix Metric visualization scale (#113956)

* 🐛 Fix metric rescale

* 📸 Restored old snapshots

* 🐛 Extend the fix to all scenarios

* 📸 Refresh snapshots for new fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Marco Liberati 2021-10-12 17:32:32 +02:00 committed by GitHub
parent 435404e961
commit fa69602b34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View file

@ -90,7 +90,9 @@ describe('metric_expression', () => {
reportDescription="Fancy chart description"
reportTitle="My fanci metric chart"
>
<AutoScale>
<AutoScale
key="3"
>
<div
data-test-subj="lns_metric_value"
style={
@ -135,7 +137,9 @@ describe('metric_expression', () => {
reportDescription="Fancy chart description"
reportTitle="My fanci metric chart"
>
<AutoScale>
<AutoScale
key="last"
>
<div
data-test-subj="lns_metric_value"
style={
@ -179,7 +183,9 @@ describe('metric_expression', () => {
reportDescription=""
reportTitle=""
>
<AutoScale>
<AutoScale
key="3"
>
<div
data-test-subj="lns_metric_value"
style={
@ -223,7 +229,9 @@ describe('metric_expression', () => {
reportDescription=""
reportTitle=""
>
<AutoScale>
<AutoScale
key="3"
>
<div
data-test-subj="lns_metric_value"
style={
@ -309,7 +317,9 @@ describe('metric_expression', () => {
reportDescription=""
reportTitle=""
>
<AutoScale>
<AutoScale
key="0"
>
<div
data-test-subj="lns_metric_value"
style={

View file

@ -89,7 +89,7 @@ export function MetricChart({
reportDescription={description}
className="lnsMetricExpression__container"
>
<AutoScale>
<AutoScale key={value}>
<div data-test-subj="lns_metric_value" style={{ fontSize: '60pt', fontWeight: 600 }}>
{value}
</div>