Do hard word break on form titles to avoid horizontal scroll on

small displays.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-07 04:50:05 -04:00
parent 91ba06c501
commit 0177a45436

View File

@@ -4,6 +4,8 @@
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
{# Avoid horizontal scroll on small displays #}
<span style="word-break: break-all;">
{% if title %}
{{ title|truncatechars:maximum_title_length }}
{% else %}
@@ -17,3 +19,4 @@
{% endif %}
{% endif %}
{% endif %}
</span>