Skip to content

Commit

Permalink
Update grid layout on small screens (WordPress#61820)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
  • Loading branch information
3 people authored and carstingaxion committed Jun 4, 2024
1 parent a748b05 commit 18a601d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,14 @@

.dataviews-view-grid {
margin-bottom: auto;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
grid-template-rows: max-content;
padding: 0 $grid-unit-40 $grid-unit-30;

@include break-mobile() {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important; // Todo: eliminate !important dependency
}

@include break-xlarge() {
grid-template-columns: repeat(3, minmax(0, 1fr)) !important; // Todo: eliminate !important dependency
}
Expand Down Expand Up @@ -557,6 +561,11 @@
}

line-height: 0;
flex-shrink: 0;

.components-checkbox-control__input-container {
margin: 0;
}
}

.dataviews-filters__custom-menu-radio-item-prefix {
Expand Down

0 comments on commit 18a601d

Please sign in to comment.