Add padding to no logbook message (#5477)

This commit is contained in:
Bram Kragten 2020-04-07 15:18:40 +02:00 committed by GitHub
parent e673d90b3f
commit 7b97ac2f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,12 +39,14 @@ class HaLogbook extends LitElement {
protected render(): TemplateResult { protected render(): TemplateResult {
if (!this.entries?.length) { if (!this.entries?.length) {
return html` return html`
${this.hass.localize("ui.panel.logbook.entries_not_found")} <div class="container">
${this.hass.localize("ui.panel.logbook.entries_not_found")}
</div>
`; `;
} }
return html` return html`
<div> <div class="container">
${scroll({ ${scroll({
items: this.entries, items: this.entries,
renderItem: (item: LogbookEntry, index?: number) => renderItem: (item: LogbookEntry, index?: number) =>
@ -154,13 +156,16 @@ class HaLogbook extends LitElement {
color: var(--primary-color); color: var(--primary-color);
} }
.container {
padding: 0 16px;
}
.uni-virtualizer-host { .uni-virtualizer-host {
display: block; display: block;
position: relative; position: relative;
contain: strict; contain: strict;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
padding: 0 16px;
} }
.uni-virtualizer-host > * { .uni-virtualizer-host > * {