Skip to content

Commit 4caa4a4

Browse files
committed
make sure narrow is passed
1 parent 8885f6b commit 4caa4a4

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

src/panels/calendar/ha-panel-calendar.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ class PanelCalendar extends LitElement {
114114
);
115115
const showPane = this._showPaneController.value ?? !this.narrow;
116116
return html`
117-
<ha-two-pane-top-app-bar-fixed .pane=${showPane} footer>
117+
<ha-two-pane-top-app-bar-fixed
118+
.pane=${showPane}
119+
footer
120+
.narrow=${this.narrow}
121+
>
118122
<ha-menu-button
119123
slot="navigationIcon"
120124
.hass=${this.hass}
@@ -303,10 +307,6 @@ class PanelCalendar extends LitElement {
303307
0px
304308
) - var(--safe-area-inset-bottom, 0px)
305309
);
306-
padding-right: var(--safe-area-inset-right);
307-
}
308-
:host([narrow]) ha-full-calendar {
309-
padding-left: var(--safe-area-inset-left);
310310
}
311311
ha-button-menu ha-button {
312312
--ha-font-size-m: var(--ha-font-size-l);

src/panels/config/dashboard/ha-config-dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
212212
this._repairsIssues;
213213

214214
return html`
215-
<ha-top-app-bar-fixed>
215+
<ha-top-app-bar-fixed narrow=${this.narrow}>
216216
<ha-menu-button
217217
slot="navigationIcon"
218218
.hass=${this.hass}

src/panels/history/ha-panel-history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class HaPanelHistory extends LitElement {
120120
protected render() {
121121
const entitiesSelected = this._getEntityIds().length > 0;
122122
return html`
123-
<ha-top-app-bar-fixed>
123+
<ha-top-app-bar-fixed narrow=${this.narrow}>
124124
${this._showBack
125125
? html`
126126
<ha-icon-button-arrow-prev

src/panels/logbook/ha-panel-logbook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class HaPanelLogbook extends LitElement {
6565

6666
protected render() {
6767
return html`
68-
<ha-top-app-bar-fixed>
68+
<ha-top-app-bar-fixed narrow=${this.narrow}>
6969
${this._showBack
7070
? html`
7171
<ha-icon-button-arrow-prev

src/panels/lovelace/hui-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class LovelaceFullConfigEditor extends LitElement {
4848

4949
protected render(): TemplateResult | undefined {
5050
return html`
51-
<ha-top-app-bar-fixed>
51+
<ha-top-app-bar-fixed narrow=${this.narrow}>
5252
<ha-icon-button
5353
slot="navigationIcon"
5454
.path=${mdiClose}

src/panels/map/ha-panel-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class HaPanelMap extends LitElement {
2121

2222
protected render() {
2323
return html`
24-
<ha-top-app-bar-fixed>
24+
<ha-top-app-bar-fixed narrow=${this.narrow}>
2525
<ha-menu-button
2626
slot="navigationIcon"
2727
.hass=${this.hass}

src/panels/media-browser/ha-panel-media-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class PanelMediaBrowser extends LitElement {
9292

9393
protected render(): TemplateResult {
9494
return html`
95-
<ha-top-app-bar-fixed>
95+
<ha-top-app-bar-fixed narrow=${this.narrow}>
9696
${this._navigateIds.length > 1
9797
? html`
9898
<ha-icon-button-arrow-prev

src/panels/todo/ha-panel-todo.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ class PanelTodo extends LitElement {
165165
</ha-list-item> `
166166
);
167167
return html`
168-
<ha-two-pane-top-app-bar-fixed .pane=${showPane} footer>
168+
<ha-two-pane-top-app-bar-fixed
169+
.pane=${showPane}
170+
footer
171+
.narrow=${this.narrow}
172+
>
169173
<ha-menu-button
170174
slot="navigationIcon"
171175
.hass=${this.hass}

0 commit comments

Comments
 (0)