Overflow fix (#23652)

This commit is contained in:
Yosi Levy 2025-01-15 09:52:20 +02:00 committed by GitHub
parent 1043db29be
commit 52d8e98cdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 32 additions and 20 deletions

View File

@ -615,6 +615,12 @@ class HaPanelHistory extends LitElement {
return [
haStyle,
css`
ha-top-app-bar-fixed {
height: 100vh;
overflow-x: hidden;
overflow-y: visible;
}
.content {
padding: 0 16px 16px;
padding-bottom: max(env(safe-area-inset-bottom), 16px);

View File

@ -87,29 +87,31 @@ export class HaPanelLogbook extends LitElement {
.label=${this.hass!.localize("ui.common.refresh")}
></ha-icon-button>
<div class="filters">
<ha-date-range-picker
.hass=${this.hass}
.startDate=${this._time.range[0]}
.endDate=${this._time.range[1]}
@change=${this._dateRangeChanged}
></ha-date-range-picker>
<div class="content">
<div class="filters">
<ha-date-range-picker
.hass=${this.hass}
.startDate=${this._time.range[0]}
.endDate=${this._time.range[1]}
@change=${this._dateRangeChanged}
></ha-date-range-picker>
<ha-target-picker
<ha-target-picker
.hass=${this.hass}
.entityFilter=${filterLogbookCompatibleEntities}
.value=${this._targetPickerValue}
add-on-top
@value-changed=${this._targetsChanged}
></ha-target-picker>
</div>
<ha-logbook
.hass=${this.hass}
.entityFilter=${filterLogbookCompatibleEntities}
.value=${this._targetPickerValue}
add-on-top
@value-changed=${this._targetsChanged}
></ha-target-picker>
.time=${this._time}
.entityIds=${this._getEntityIds()}
virtualize
></ha-logbook>
</div>
<ha-logbook
.hass=${this.hass}
.time=${this._time}
.entityIds=${this._getEntityIds()}
virtualize
></ha-logbook>
</ha-top-app-bar-fixed>
`;
}
@ -319,6 +321,10 @@ export class HaPanelLogbook extends LitElement {
margin-bottom: 8px;
}
.content {
overflow: hidden;
}
.filters {
display: flex;
padding: 16px 16px 0;