mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Update ha-chart-base.ts: fix "Tooltip: a long name may overflow" (#18849)
This commit is contained in:
parent
6f240ec681
commit
c5f15ee6ba
@ -469,6 +469,7 @@ export class HaChartBase extends LitElement {
|
|||||||
.chartTooltip li {
|
.chartTooltip li {
|
||||||
display: flex;
|
display: flex;
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
|
word-break: break-word;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
@ -476,6 +477,7 @@ export class HaChartBase extends LitElement {
|
|||||||
.chartTooltip .title {
|
.chartTooltip .title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
word-break: break-word;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
}
|
}
|
||||||
.chartTooltip .footer {
|
.chartTooltip .footer {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user