[Rt-commit] rt branch, 4.4/fill-up-search-result-rows, created. rt-4.4.4-101-g425055e8cf
? sunnavy
sunnavy at bestpractical.com
Wed Apr 29 15:28:40 EDT 2020
The branch, 4.4/fill-up-search-result-rows has been created
at 425055e8cf5615c0fc210d57e61153504d428145 (commit)
- Log -----------------------------------------------------------------
commit 425055e8cf5615c0fc210d57e61153504d428145
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Apr 30 03:05:53 2020 +0800
Fill up cells of record's last row in search results
Otherwise, the shading background of these missing-cells rows would not
cover the whole tr width, which looks bad.
diff --git a/share/html/Elements/CollectionAsTable/Row b/share/html/Elements/CollectionAsTable/Row
index 7332f5176b..73bb3c3f7e 100644
--- a/share/html/Elements/CollectionAsTable/Row
+++ b/share/html/Elements/CollectionAsTable/Row
@@ -153,6 +153,13 @@ foreach my $column (@Format) {
$m->out(@out) if @out;
$m->out( '</td>' . "\n" );
}
+
+# Fill up the last row, like how NEWLINE is handled above
+while ( $item < $maxitems ) {
+ $m->out(qq{<td class="collection-as-table"> </td>\n});
+ $item++;
+}
+
$m->out('</tr>');
$m->out('</tbody>');
</%init>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list