mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix overflow on submenus (#20415)
This commit is contained in:
parent
daa9024bff
commit
4cfd6c010f
@ -6,6 +6,11 @@ import { MdSubMenu } from "@material/web/menu/sub-menu";
|
|||||||
@customElement("ha-sub-menu")
|
@customElement("ha-sub-menu")
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
export class HaSubMenu extends MdSubMenu {
|
export class HaSubMenu extends MdSubMenu {
|
||||||
|
async show() {
|
||||||
|
super.show();
|
||||||
|
this.menu.hasOverflow = false;
|
||||||
|
}
|
||||||
|
|
||||||
static override styles: CSSResult[] = [
|
static override styles: CSSResult[] = [
|
||||||
MdSubMenu.styles,
|
MdSubMenu.styles,
|
||||||
css`
|
css`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user