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:
@@ -4,16 +4,19 @@
|
|||||||
|
|
||||||
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
|
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
|
||||||
|
|
||||||
{% if title %}
|
{# Avoid horizontal scroll on small displays #}
|
||||||
{{ title|truncatechars:maximum_title_length }}
|
<span style="word-break: break-all;">
|
||||||
{% else %}
|
{% if title %}
|
||||||
{% if read_only %}
|
{{ title|truncatechars:maximum_title_length }}
|
||||||
{% blocktrans %}Details for: {{ object }}{% endblocktrans %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if object %}
|
{% if read_only %}
|
||||||
{% blocktrans with object as object %}Edit: {{ object }}{% endblocktrans %}
|
{% blocktrans %}Details for: {{ object }}{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans 'Create' %}
|
{% if object %}
|
||||||
|
{% blocktrans with object as object %}Edit: {{ object }}{% endblocktrans %}
|
||||||
|
{% else %}
|
||||||
|
{% trans 'Create' %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user