Make sent international status display on 2 lines

Otherwise it wraps awkwardly
This commit is contained in:
Chris Hill-Scott
2020-09-17 12:33:46 +01:00
parent 33e7ae8895
commit daaa3d69a3
3 changed files with 15 additions and 2 deletions

View File

@@ -479,7 +479,10 @@ def format_notification_status_as_field_status(status, notification_type):
'virus-scan-failed': 'error',
'returned-letter': None,
'cancelled': 'error',
}
},
'sms': {
'sent': 'sent-international'
},
}.get(
notification_type,
{

View File

@@ -225,6 +225,16 @@
}
&-sent-international {
.status-hint {
display: block;
font-weight: normal;
margin-top: 5px;
}
}
&-yes,
&-no {
display: block;

View File

@@ -144,7 +144,7 @@
{% macro notification_status_field(notification) %}
{% set displayed_on_single_line = notification.status in ['created', 'pending', 'pending-virus-check', 'sending', 'sent', 'delivered', 'returned-letter', 'accepted', 'received'] %}
{% set displayed_on_single_line = notification.status in ['created', 'pending', 'pending-virus-check', 'sending', 'delivered', 'returned-letter', 'accepted', 'received'] %}
{% if not notification %}
{% call field(align='right') %}{% endcall %}