[Rt-commit] rt branch, 5.0/update-results-spacing, created. rt-5.0.0alpha1-398-gbc79da427a

Jim Brandt jbrandt at bestpractical.com
Thu May 7 15:17:52 EDT 2020


The branch, 5.0/update-results-spacing has been created
        at  bc79da427a3dbb991a2a370cb94c13dac1e53e25 (commit)

- Log -----------------------------------------------------------------
commit bc79da427a3dbb991a2a370cb94c13dac1e53e25
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu May 7 15:16:40 2020 -0400

    Suppress padding on the sides and bottom of results text
    
    Result text is displayed with a titlebox, but it is positioned
    at the top of the page and the extra padding creates
    unneeded blank space.

diff --git a/share/html/Elements/ListActions b/share/html/Elements/ListActions
index 245bd72c7e..84663286ab 100644
--- a/share/html/Elements/ListActions
+++ b/share/html/Elements/ListActions
@@ -48,7 +48,7 @@
 % $m->out($$_) for grep {ref $_} @actions;
 % if (grep {not ref $_} @actions) {
 <div class="results">
-<&| /Widgets/TitleBox, title => loc('Results'), %{$titlebox || {}} &>
+<&| /Widgets/TitleBox, title => loc('Results'), content_class => 'listactions', %{$titlebox || {}} &>
   <ul class="action-results">
 % foreach my $action (grep {not ref $_} @actions) {
     <li><%$action%></li>
diff --git a/share/static/css/elevator-light/boxes.css b/share/static/css/elevator-light/boxes.css
index 98a221a881..3ef6af547f 100644
--- a/share/static/css/elevator-light/boxes.css
+++ b/share/static/css/elevator-light/boxes.css
@@ -100,6 +100,11 @@ div.results .titlebox .titlebox-content {
     padding: 0 15px 15px 15px;
 }
 
+/* Suppress bottom and side padding for results messages */
+.titlebox .listactions .card-body {
+    padding: 0;
+}
+
 /* Ticket display page colored top borders */
 /* Keep in sync with transaction colors in history.css */
 /* material.io reference: https://material.io/design/color/#tools-for-picking-colors */

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


More information about the rt-commit mailing list