Collapse empty Masonry columns (#5315, #6632) (#16351)

This commit is contained in:
Joe 2023-05-04 11:04:03 -04:00 committed by GitHub
parent 1cb7e798da
commit 3fa3d333c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,6 +320,10 @@ export class MasonryView extends LitElement implements LovelaceViewElement {
min-width: 0;
}
.column:not(:has(> *:not([hidden]))) {
flex-grow: 0;
}
.column > *:not([hidden]) {
display: block;
margin: var(--masonry-view-card-margin, 4px 4px 8px);