Skip to content

Commit

Permalink
Update grid layout on small screens (#61820)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
3 people authored May 21, 2024
1 parent 9ea4204 commit 9e28f24
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

1 comment on commit 9e28f24

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 9e28f24.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9176617005
📝 Reported issues:

Please sign in to comment.