[Rt-commit] rt branch 5.0/fix-selection-box-overlapping-content created. rt-5.0.4-217-g069635dc67

BPS Git Server git at git.bestpractical.com
Thu Sep 14 19:37:16 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/fix-selection-box-overlapping-content has been created
        at  069635dc67f7c6a8b2b67f27b5b8bd3e016e559c (commit)

- Log -----------------------------------------------------------------
commit 069635dc67f7c6a8b2b67f27b5b8bd3e016e559c
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 14 13:35:51 2023 -0400

    Drop height CSS rules for each section in source selection boxes
    
    The source selection boxes could have multiple sections like the one on
    dashboard content page. Each section has a list(ul), if we limit the
    height of each list, then these lists could overlap when some have many
    items.
    
    The height rules were introduced in 26330cc478 to align source and
    destination selection boxes for pages like DashboardInMenu. This commit
    drops these rules for each list, but as similar height rules still apply
    to the outer boxes(.contents), the source/destination selection boxes
    can still be aligned.
    
    Note that the destination selection box needs some default space to make
    the "drop" action work, and because its min-height is "250px", here we
    change its ancestor(.contents)'s min-height is "350px" to cover the
    heading(h3).

diff --git a/share/static/css/elevator-light/forms.css b/share/static/css/elevator-light/forms.css
index 58ba5912b3..85b08547a9 100644
--- a/share/static/css/elevator-light/forms.css
+++ b/share/static/css/elevator-light/forms.css
@@ -437,17 +437,15 @@ textarea.code {
 }
 
 .selectionbox-js .source .contents,
-.selectionbox-js .source .contents ul {
-    min-height: 250px; /* to be consistent with the following .destination */
+.selectionbox-js .destination .contents {
+    min-height: 350px;
     max-height: 1000px;
 }
 
 /* include ul rule specifically to make the drop target work when there are
    no selected searches */
-.selectionbox-js .destination .contents,
 .selectionbox-js .destination .contents ul {
     min-height: 250px;
-    max-height: 1000px;
 }
 
 .selectionbox-js h2 {

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list