mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Add padding to no logbook message (#5477)
This commit is contained in:
parent
e673d90b3f
commit
7b97ac2f6f
@ -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 > * {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user