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,6 +4,8 @@
|
|||||||
|
|
||||||
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
|
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
|
||||||
|
|
||||||
|
{# Avoid horizontal scroll on small displays #}
|
||||||
|
<span style="word-break: break-all;">
|
||||||
{% if title %}
|
{% if title %}
|
||||||
{{ title|truncatechars:maximum_title_length }}
|
{{ title|truncatechars:maximum_title_length }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -17,3 +19,4 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user