From 01f9232da161a0ee06bbc6bd0b21f1a4321189dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=BCndig?= Date: Sun, 11 Oct 2020 15:12:56 +0200 Subject: [PATCH 1/4] Added entity_id to history graph tooltip --- src/components/entity/ha-chart-base.js | 11 +++++++++++ src/components/state-history-chart-timeline.js | 11 ++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/components/entity/ha-chart-base.js b/src/components/entity/ha-chart-base.js index 7df570747c20..cd5fdb2443e4 100644 --- a/src/components/entity/ha-chart-base.js +++ b/src/components/entity/ha-chart-base.js @@ -79,6 +79,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; @@ -133,6 +137,9 @@ class HaChartBase extends mixinBehaviors( style$="opacity:[[tooltip.opacity]]; top:[[tooltip.top]]; left:[[tooltip.left]]; padding:[[tooltip.yPadding]]px [[tooltip.xPadding]]px" >
[[tooltip.title]]
+