Fix sidebar tooltip (#16238)

This commit is contained in:
Paul Bottein 2023-04-19 14:23:04 +02:00 committed by GitHub
parent 0ce3757b80
commit 910244f751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -810,6 +810,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
}
tooltip.innerHTML = item.querySelector(".item-text")!.innerHTML;
tooltip.style.display = "block";
tooltip.style.position = "fixed";
tooltip.style.top = `${top}px`;
tooltip.style.left = `${item.offsetLeft + item.clientWidth + 4}px`;
}
@ -840,6 +841,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
haStyleScrollbar,
css`
:host {
overflow: visible;
height: 100%;
display: block;
overflow: hidden;