diff --git a/app/assets/v2/css/dashboard.css b/app/assets/v2/css/dashboard.css index b4e3f3f8f6f..2562aa33fb8 100644 --- a/app/assets/v2/css/dashboard.css +++ b/app/assets/v2/css/dashboard.css @@ -191,7 +191,6 @@ body { } @media (max-width: 991.98px) { - .bounty_row { padding-left: 1rem; padding-right: 1rem; diff --git a/app/assets/v2/css/sidebar_search.css b/app/assets/v2/css/sidebar_search.css index a43c6c65796..552ef18058d 100644 --- a/app/assets/v2/css/sidebar_search.css +++ b/app/assets/v2/css/sidebar_search.css @@ -15,6 +15,11 @@ font-size: 0.8rem; } +#expand, +#minimize { + display: none; +} + .close-icon { position: absolute; top: 13px; @@ -87,11 +92,15 @@ } @media (max-width: 991.98px) { - #sidebar_container form, - .search-history { + #sidebar_container form { + height: 0; display: none; } + #expand { + display: inherit; + } + .search_bar div { padding-right: 15px !important; } diff --git a/app/assets/v2/js/pages/dashboard.js b/app/assets/v2/js/pages/dashboard.js index d8b088c6da6..c8662a2c1ba 100644 --- a/app/assets/v2/js/pages/dashboard.js +++ b/app/assets/v2/js/pages/dashboard.js @@ -670,6 +670,24 @@ var resetFilters = function(resetKeyword) { $(document).ready(function() { + $('#expand').on('click', () => { + $('#expand').hide(); + $('#minimize').show(); + $('#sidebar_container form').css({ + 'height': 'auto', + 'display': 'inherit' + }); + }); + + $('#minimize').on('click', () => { + $('#minimize').hide(); + $('#expand').show(); + $('#sidebar_container form').css({ + 'height': 0, + 'display': 'none' + }); + }); + // Sort select menu $('#sort_option').selectmenu({ select: function(event, ui) { diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 9b5b905d76d..bf703e42e88 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -78,7 +78,7 @@