diff --git a/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap b/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap index ed3f5e749f..cc189c8d4c 100644 --- a/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap +++ b/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap @@ -113,7 +113,7 @@ exports[`Matches shallow shapshot 1`] = ` />
+
+ + @@ -239,7 +256,23 @@ exports[`Matches shallow shapshot 2`] = ` />
+ + +
+
-
+
{ + let d = dates.endDate ? dates.endDate.toISOString() : null; + let state = Filter.setEndDate(filterState, d); + d = dates.startDate ? dates.startDate.toISOString() : null; + state = Filter.setStartDate(state, d); + setFilterState(state); + }} + startDate={ + filterState.startDate && moment(filterState.startDate) + } + /> +
+
+ + { diff --git a/src/shared/components/challenge-listing/Filters/FiltersPanel/style.scss b/src/shared/components/challenge-listing/Filters/FiltersPanel/style.scss index df7ff51432..b29b999843 100644 --- a/src/shared/components/challenge-listing/Filters/FiltersPanel/style.scss +++ b/src/shared/components/challenge-listing/Filters/FiltersPanel/style.scss @@ -28,6 +28,7 @@ $panel-radius-4: $corner-radius * 2; right: 0; background: $tc-white; padding: 15px; + overflow-y: scroll; } &.hidden { @@ -85,6 +86,7 @@ $panel-radius-4: $corner-radius * 2; width: 100%; padding-left: 0; border-left: none; + margin-bottom: $panel-space-100; } button { @@ -197,6 +199,18 @@ $panel-radius-4: $corner-radius * 2; @include xxs-to-sm { margin-top: 20px; } + + &.hidetwomonthdatepicker { + @media screen and (min-width: $screen-md) { + display: none; + } + } + + &.hideonemonthdatepicker { + @media screen and (max-width: $screen-md - 1px) { + display: none; + } + } } } }