From 8165c67ebc993d7f6075a7f0b92bec033e7b95d1 Mon Sep 17 00:00:00 2001 From: James Koster Date: Tue, 21 May 2024 14:12:00 +0100 Subject: [PATCH] Update grid layout on small screens --- packages/dataviews/src/style.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/dataviews/src/style.scss b/packages/dataviews/src/style.scss index ae886842b2e9fd..07ba9174b51200 100644 --- a/packages/dataviews/src/style.scss +++ b/packages/dataviews/src/style.scss @@ -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 } @@ -557,6 +561,11 @@ } line-height: 0; + flex-shrink: 0; + + .components-checkbox-control__input-container { + margin: 0; + } } .dataviews-filters__custom-menu-radio-item-prefix {