From c5f15ee6ba1629b662e6d371322d47fff7438571 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:05:02 +0300 Subject: [PATCH] Update ha-chart-base.ts: fix "Tooltip: a long name may overflow" (#18849) --- src/components/chart/ha-chart-base.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index f82305a983..36ddc2915c 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -469,6 +469,7 @@ export class HaChartBase extends LitElement { .chartTooltip li { display: flex; white-space: pre-line; + word-break: break-word; align-items: center; line-height: 16px; padding: 4px 0; @@ -476,6 +477,7 @@ export class HaChartBase extends LitElement { .chartTooltip .title { text-align: center; font-weight: 500; + word-break: break-word; direction: ltr; } .chartTooltip .footer {