diff --git a/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_filter_dropdown.scss b/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_filter_dropdown.scss index f4a5fe5..42b9162 100644 --- a/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_filter_dropdown.scss +++ b/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_filter_dropdown.scss @@ -119,9 +119,6 @@ padding: 8px 16px 8px 8px; font-size: 14px; text-wrap: nowrap; - max-width: 100%; - overflow: hidden; - text-overflow: ellipsis; } .decidimGeo__filterModal__select, diff --git a/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_mobile.scss b/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_mobile.scss index 1222add..faf49fd 100644 --- a/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_mobile.scss +++ b/app/packs/stylesheets/decidim/geo/geo/_decidim_geo_mobile.scss @@ -214,6 +214,12 @@ .decidimGeo__drawerHeader__drawerToggle { padding: 8px; } + .decidimGeo__filterModal__label { + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + + } .decidimGeo__filterModal__fieldlist { padding: 8px; position: relative; diff --git a/lib/decidim/geo/proposal/proposal_filter.rb b/lib/decidim/geo/proposal/proposal_filter.rb index 9e8b978..ef35887 100644 --- a/lib/decidim/geo/proposal/proposal_filter.rb +++ b/lib/decidim/geo/proposal/proposal_filter.rb @@ -14,18 +14,14 @@ def filter_past(query) def filter_active(query) query.where( - "resource_type = ? AND (resource_status IN ('not_answered', 'evaluating', 'accepted') OR resource_status IS NULL) AND (end_date > ? OR end_date IS NULL)", + "resource_type = ? AND (resource_status NOT IN ('rejected', 'withdrawn') OR end_date >= ? OR end_date IS NULL)", manifest_name, 15.days.ago.to_date ) end def filter_future(query) - query.where( - "resource_type = ? AND (resource_status IN ('not_answered', 'evaluating', 'accepted') OR resource_status IS NULL) AND (start_date > ? OR start_date IS NULL)", - manifest_name, - 15.days.ago.to_date - ) + filter_active(query) end end end