fix : Auto email report fix for XLSX and CSV format (#6729)
This commit is contained in:
parent
c274882fd0
commit
900392efa3
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,11 @@
|
|||
{% macro get_alignment(col) %}
|
||||
{%- if col.fieldtype in ('Int', 'Float', 'Currency', 'Check') %} class="text-right" {% endif -%}
|
||||
{% endmacro %}
|
||||
{% set max_width = '100%' if columns|length > 3 else '600px' %}
|
||||
{% if columns %}
|
||||
{% set max_width = '100%' if columns|length > 3 else '600px' %}
|
||||
{% else %}
|
||||
{% set max_width = '600px' %}
|
||||
{% endif %}
|
||||
<table class="report-title" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: {{ max_width }}">
|
||||
<tr>
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue