Skip to content

Commit

Permalink
Update grid layout on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed May 21, 2024
1 parent 8bd3d46 commit 8165c67
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 8165c67

Please sign in to comment.