Skip to content

Commit

Permalink
Update field line height across grid / list layouts (#63945)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: richtabor <[email protected]>
  • Loading branch information
3 people authored Jul 26, 2024
1 parent 1e28ca4 commit 1425f94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/dataviews/src/layouts/grid/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
padding: 0 0 $grid-unit-15;
}

.dataviews-view-grid__field-value:not(:empty) {
min-height: $grid-unit-30;
line-height: $grid-unit-05 * 5;
padding-top: $grid-unit-05 / 2;
}

.dataviews-view-grid__field {
align-items: flex-start;
min-height: $grid-unit-30;
Expand Down
5 changes: 4 additions & 1 deletion packages/dataviews/src/layouts/list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@
}

.dataviews-view-list__field-value {
line-height: $grid-unit-05 * 6;
min-height: $grid-unit-30;
line-height: $grid-unit-05 * 5;
display: flex;
align-items: center;
}
}

Expand Down

0 comments on commit 1425f94

Please sign in to comment.