From 884fc7496d5b66ed02953d315359a0a809507340 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 9 Sep 2021 11:47:17 -0700 Subject: [PATCH] Report improvements. --- views/default.handlebars | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index d317128c..187a4850 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -14972,14 +14972,14 @@ for (var i in r.columns) { var coltitle; if (colTranslation[r.columns[i].title] != null) { coltitle = colTranslation[r.columns[i].title]; } else { coltitle = EscapeHtml(r.columns[i].title); } - if ((i == 0) && ((r.columns[i].format == 'datetime') || (r.columns[i].format == 'time'))) { - x += '' + coltitle + ''; - } else { - x += '' + coltitle + ''; - } + var style = ''; + if (r.columns[i].align) { style += ';text-align:' + EscapeHtml(r.columns[i].align); } else { style += ';text-align:left'; } + if ((i == 0) && ((r.columns[i].format == 'datetime') || (r.columns[i].format == 'time'))) { style += ';width:1%'; } + x += '' + coltitle + ''; } x += '' for (var i in r.groups) { + x += '' x += '' x += renderReportFormat(i, r.groupFormat); x += ''