From 557d6d37a1708665b2a8a7c77d99e78cb4e3d509 Mon Sep 17 00:00:00 2001 From: Nico Hirsch <30938717+noxhirsch@users.noreply.github.com> Date: Mon, 12 Oct 2020 11:12:20 +0200 Subject: [PATCH] Fix charts tooltip (#7216) --- src/components/entity/ha-chart-base.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/entity/ha-chart-base.js b/src/components/entity/ha-chart-base.js index 7df570747c..1007de090c 100644 --- a/src/components/entity/ha-chart-base.js +++ b/src/components/entity/ha-chart-base.js @@ -71,10 +71,16 @@ class HaChartBase extends mixinBehaviors( margin: 5px 0 0 0; width: 100%; } + .chartTooltip ul { + margin: 0 3px; + } .chartTooltip li { display: block; white-space: pre-line; } + .chartTooltip li::first-line { + line-height: 0; + } .chartTooltip .title { text-align: center; font-weight: 500;