mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Fix label wrap (#20323)
* Don't wrap headline on ha-menu-item * Don't wrap text on ha-label
This commit is contained in:
parent
8a015f4e38
commit
169d782580
@ -43,6 +43,7 @@ class HaLabel extends LitElement {
|
|||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
color: var(--ha-label-text-color);
|
color: var(--ha-label-text-color);
|
||||||
--mdc-icon-size: 12px;
|
--mdc-icon-size: 12px;
|
||||||
|
text-wrap: nowrap;
|
||||||
}
|
}
|
||||||
.content > * {
|
.content > * {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { customElement } from "lit/decorators";
|
import { MdMenuItem } from "@material/web/menu/menu-item";
|
||||||
import "element-internals-polyfill";
|
import "element-internals-polyfill";
|
||||||
import { CSSResult, css } from "lit";
|
import { CSSResult, css } from "lit";
|
||||||
import { MdMenuItem } from "@material/web/menu/menu-item";
|
import { customElement } from "lit/decorators";
|
||||||
|
|
||||||
@customElement("ha-menu-item")
|
@customElement("ha-menu-item")
|
||||||
export class HaMenuItem extends MdMenuItem {
|
export class HaMenuItem extends MdMenuItem {
|
||||||
@ -30,6 +30,9 @@ export class HaMenuItem extends MdMenuItem {
|
|||||||
--md-menu-item-label-text-color: var(--error-color);
|
--md-menu-item-label-text-color: var(--error-color);
|
||||||
--md-menu-item-leading-icon-color: var(--error-color);
|
--md-menu-item-leading-icon-color: var(--error-color);
|
||||||
}
|
}
|
||||||
|
::slotted([slot="headline"]) {
|
||||||
|
text-wrap: nowrap;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user