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,9 +4,11 @@
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
{% if title %}
{# Avoid horizontal scroll on small displays #}
<span style="word-break: break-all;">
{% if title %}
{{ title|truncatechars:maximum_title_length }}
{% else %}
{% else %}
{% if read_only %}
{% blocktrans %}Details for: {{ object }}{% endblocktrans %}
{% else %}
@@ -16,4 +18,5 @@
{% trans 'Create' %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</span>