From 22c72aedeb07e3c2a7a8ae4807258e7196a86aea Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Fri, 18 Jan 2019 09:50:15 -0600 Subject: [PATCH] issue: Scrollable Quickfilters This addresses an issue where having more than 30+ choices for a Quickfilter makes the dropdown run off the page causing some choices to be hidden. This makes it to where if you have more than 20+ choices we will make the dropdown a fixed height and make it scrollable. --- include/staff/templates/queue-quickfilter.tmpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/templates/queue-quickfilter.tmpl.php b/include/staff/templates/queue-quickfilter.tmpl.php index 9e4d64850..d7919963d 100644 --- a/include/staff/templates/queue-quickfilter.tmpl.php +++ b/include/staff/templates/queue-quickfilter.tmpl.php @@ -36,7 +36,7 @@ $.pjax({ url: '?' + query, timeout: 2000, container: '#pjax-container'});"> - <ul> + <ul <?php if (count($choices) > 20) echo 'style="height:500px;overflow-x:hidden;overflow-y:scroll;"'; ?>> <?php foreach ($choices as $k=>$desc) { $selected = isset($quick_filter) && $quick_filter == $k; ?> -- GitLab