Add space for the fab on datatable without tabs (#23545)

Add space for the fab on backups datatable
This commit is contained in:
Bram Kragten
2025-01-02 13:44:04 +01:00
committed by GitHub
parent 4e10d140d9
commit 012bd0714c
2 changed files with 12 additions and 1 deletions

View File

@@ -515,7 +515,7 @@ export class HaDataTable extends LitElement {
return html`<div class="mdc-data-table__row">${row.content}</div>`;
}
if (row.empty) {
return html`<div class="mdc-data-table__row"></div>`;
return html`<div class="mdc-data-table__row empty-row"></div>`;
}
return html`
<div
@@ -960,6 +960,13 @@ export class HaDataTable extends LitElement {
width: var(--table-row-width, 100%);
}
.mdc-data-table__row.empty-row {
height: var(
--data-table-empty-row-height,
var(--data-table-row-height, 52px)
);
}
.mdc-data-table__row ~ .mdc-data-table__row {
border-top: 1px solid var(--divider-color);
}