Skip to content

Commit

Permalink
DataViews: Conditionally shows the description field in Template Grid…
Browse files Browse the repository at this point in the history
… layout (#64043)

Co-authored-by: amitraj2203 <amitraj2203@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
4 people committed Jul 30, 2024
1 parent 144f27c commit 8f053a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/dataviews/src/layouts/grid/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
align-items: flex-start;
min-height: $grid-unit-30;

&:not(:has(.dataviews-view-grid__field-value:not(:empty))) {
display: none;
}

&:not(.is-column) {
align-items: center;

Expand Down

0 comments on commit 8f053a6

Please sign in to comment.