A free, self-hostable news aggregator…
Improve long dropdown menu lists (#2108)
romibiadcbfc43b866
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtmlindex 784a41e1f..1f35318e3 100644--- a/app/views/helpers/index/normal/entry_bottom.phtml+++ b/app/views/helpers/index/normal/entry_bottom.phtml@@ -42,7 +42,7 @@<a class="dropdown-toggle" href="#dropdown-labels-<?php echo $this->entry->id();?>"><?phpecho _t('index.menu.tags');?></a>- <ul class="dropdown-menu">+ <ul class="dropdown-menu dropdown-menu-scrollable"><li class="dropdown-close"><a href="#close">❌</a></li><!-- Ajax --></ul>diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.cssindex 273b3d07f..f07b397f4 100644--- a/p/themes/base-theme/template.css+++ b/p/themes/base-theme/template.css@@ -230,6 +230,11 @@ a.btn {background: #fff;border: 1px solid #aaa;}+.dropdown-menu-scrollable {+ max-height: 75vh;+ overflow-x: hidden;+ overflow-y: auto;+}.dropdown-header {display: block;}