summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar romibi <romibi@bluewin.ch> 2019-12-28 15:01:55 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-12-28 15:01:55 +0100
commit518672fd279e97afeee0756ea812cd7f89c2f778 (patch)
tree00aee7e742820ab879c495e48cf2d7e466781c20
parentd6b923763029e06ff77c555cb1b049b36b755bd9 (diff)
Fix labels dropdown not scrollable after a while (#2727)
-rw-r--r--app/views/helpers/index/normal/entry_bottom.phtml1
-rw-r--r--p/themes/base-theme/template.css16
2 files changed, 16 insertions, 1 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml
index 6755e9b6b..fa2b8f036 100644
--- a/app/views/helpers/index/normal/entry_bottom.phtml
+++ b/app/views/helpers/index/normal/entry_bottom.phtml
@@ -46,6 +46,7 @@
<li class="dropdown-close"><a href="#close">❌</a></li>
<!-- Ajax -->
</ul>
+ <div class="dropdown-close"><a href="#close">❌</a></div>
</div>
</li><?php
}
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css
index ebceea526..cb468c845 100644
--- a/p/themes/base-theme/template.css
+++ b/p/themes/base-theme/template.css
@@ -321,10 +321,24 @@ a.btn {
position: fixed;
top: 0; bottom: 0;
left: 0; right: 0;
- z-index: -10;
+ z-index: -11;
cursor: default;
}
+.dropdown div.dropdown-close {
+ display: none;
+}
+
+.dropdown-target:target ~ div.dropdown-close {
+ display: block;
+ z-index: 999;
+ position: relative;
+}
+
+.dropdown-menu-scrollable .dropdown-close {
+ display: none;
+}
+
.separator {
display: block;
height: 0;