mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 07:46:37 +00:00
revert lovelace selectable text (#4095)
This commit is contained in:
parent
8ac278bc59
commit
a8d0a2293f
@ -73,14 +73,6 @@ class HUIRoot extends LitElement {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected firstUpdated(changedProperties: PropertyValues): void {
|
|
||||||
super.firstUpdated(changedProperties);
|
|
||||||
this.classList.toggle(
|
|
||||||
"disable-text-select",
|
|
||||||
/Chrome/.test(navigator.userAgent) && /Android/.test(navigator.userAgent)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected render(): TemplateResult | void {
|
protected render(): TemplateResult | void {
|
||||||
return html`
|
return html`
|
||||||
<app-route .route="${this.route}" pattern="/:view" data="${
|
<app-route .route="${this.route}" pattern="/:view" data="${
|
||||||
@ -321,9 +313,6 @@ class HUIRoot extends LitElement {
|
|||||||
:host {
|
:host {
|
||||||
--dark-color: #455a64;
|
--dark-color: #455a64;
|
||||||
--text-dark-color: #fff;
|
--text-dark-color: #fff;
|
||||||
}
|
|
||||||
|
|
||||||
:host(.disable-text-select) {
|
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user