From 993d73c3599496f0534923bd56a211e3d8790cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=BCndig?= Date: Mon, 12 Oct 2020 14:12:54 +0200 Subject: [PATCH] Added entity_id to history graph tooltip (#7310) Co-authored-by: Bram Kragten --- src/components/entity/ha-chart-base.js | 11 +++++++++++ src/components/state-history-chart-timeline.js | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/components/entity/ha-chart-base.js b/src/components/entity/ha-chart-base.js index 1007de090c..8ddcd75f13 100644 --- a/src/components/entity/ha-chart-base.js +++ b/src/components/entity/ha-chart-base.js @@ -85,6 +85,10 @@ class HaChartBase extends mixinBehaviors( text-align: center; font-weight: 500; } + .chartTooltip .beforeBody { + text-align: center; + font-weight: 300; + } .chartLegend li { display: inline-block; padding: 0 6px; @@ -139,6 +143,9 @@ class HaChartBase extends mixinBehaviors( style$="opacity:[[tooltip.opacity]]; top:[[tooltip.top]]; left:[[tooltip.left]]; padding:[[tooltip.yPadding]]px [[tooltip.xPadding]]px" >
[[tooltip.title]]
+