Automation editor mobile bottom sheet (#26680)

This commit is contained in:
Wendelin
2025-08-25 16:27:57 +02:00
committed by GitHub
parent 7ab27d620a
commit 4f4343d6c8
22 changed files with 525 additions and 123 deletions

View File

@@ -207,6 +207,7 @@ export class HaManualScriptEditor extends LitElement {
hidden: !this._sidebarConfig,
overlay: !this.isWide,
})}
.narrow=${this.narrow}
.isWide=${this.isWide}
.hass=${this.hass}
.config=${this._sidebarConfig}
@@ -511,18 +512,14 @@ export class HaManualScriptEditor extends LitElement {
}
@media all and (max-width: 870px) {
.sidebar.overlay {
max-height: 70vh;
max-height: 70dvh;
height: auto;
width: 100%;
box-shadow: 0px -8px 16px rgba(0, 0, 0, 0.2);
.split-view {
gap: 0;
margin-right: -8px;
}
}
@media all and (max-width: 870px) {
.sidebar.overlay.hidden {
.sidebar {
height: 0;
width: 0;
flex: 0;
}
}