Revert accidental added draft changes
This commit is contained in:
parent
81cc745c0a
commit
f2773821eb
|
@ -15,8 +15,6 @@ class HassSubpage extends LitElement {
|
||||||
|
|
||||||
@property({ type: String, attribute: "back-path" }) public backPath?: string;
|
@property({ type: String, attribute: "back-path" }) public backPath?: string;
|
||||||
|
|
||||||
@property() public backCallback?: () => void;
|
|
||||||
|
|
||||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||||
|
|
||||||
@property({ type: Boolean }) public supervisor = false;
|
@property({ type: Boolean }) public supervisor = false;
|
||||||
|
@ -54,9 +52,6 @@ class HassSubpage extends LitElement {
|
||||||
<slot name="toolbar-icon"></slot>
|
<slot name="toolbar-icon"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" @scroll=${this._saveScrollPos}><slot></slot></div>
|
<div class="content" @scroll=${this._saveScrollPos}><slot></slot></div>
|
||||||
<div id="fab">
|
|
||||||
<slot name="fab"></slot>
|
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,10 +61,6 @@ class HassSubpage extends LitElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _backTapped(): void {
|
private _backTapped(): void {
|
||||||
if (this.backCallback) {
|
|
||||||
this.backCallback();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
history.back();
|
history.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,29 +116,6 @@ class HassSubpage extends LitElement {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fab {
|
|
||||||
position: fixed;
|
|
||||||
right: calc(16px + env(safe-area-inset-right));
|
|
||||||
bottom: calc(16px + env(safe-area-inset-bottom));
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
:host([narrow]) #fab.tabs {
|
|
||||||
bottom: calc(84px + env(safe-area-inset-bottom));
|
|
||||||
}
|
|
||||||
#fab[is-wide] {
|
|
||||||
bottom: 24px;
|
|
||||||
right: 24px;
|
|
||||||
}
|
|
||||||
:host([rtl]) #fab {
|
|
||||||
right: auto;
|
|
||||||
left: calc(16px + env(safe-area-inset-left));
|
|
||||||
}
|
|
||||||
:host([rtl][is-wide]) #fab {
|
|
||||||
bottom: 24px;
|
|
||||||
left: 24px;
|
|
||||||
right: auto;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ import {
|
||||||
showPromptDialog,
|
showPromptDialog,
|
||||||
} from "../../../dialogs/generic/show-dialog-box";
|
} from "../../../dialogs/generic/show-dialog-box";
|
||||||
import "../../../layouts/ha-app-layout";
|
import "../../../layouts/ha-app-layout";
|
||||||
import "../../../layouts/hass-subpage";
|
import "../../../layouts/hass-tabs-subpage";
|
||||||
import { KeyboardShortcutMixin } from "../../../mixins/keyboard-shortcut-mixin";
|
import { KeyboardShortcutMixin } from "../../../mixins/keyboard-shortcut-mixin";
|
||||||
import { haStyle } from "../../../resources/styles";
|
import { haStyle } from "../../../resources/styles";
|
||||||
import { HomeAssistant, Route } from "../../../types";
|
import { HomeAssistant, Route } from "../../../types";
|
||||||
|
@ -113,7 +113,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
||||||
? this.hass.states[this._entityId]
|
? this.hass.states[this._entityId]
|
||||||
: undefined;
|
: undefined;
|
||||||
return html`
|
return html`
|
||||||
<hass-subpage
|
<hass-tabs-subpage
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.narrow=${this.narrow}
|
.narrow=${this.narrow}
|
||||||
.route=${this.route}
|
.route=${this.route}
|
||||||
|
@ -336,7 +336,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" .path=${mdiContentSave}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiContentSave}></ha-svg-icon>
|
||||||
</ha-fab>
|
</ha-fab>
|
||||||
</hass-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue