mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 02:08:25 -04:00
Respect linebreaks in templates
If a user puts a linebreak in an SMS template then the recipient will see these linebreaks on their phone. So when we show a preview of an SMS template, it should have linebreaks in it.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
%sms-message-wrapper,
|
%sms-message-wrapper,
|
||||||
.sms-message-wrapper {
|
.sms-message-wrapper {
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: $gutter-half;
|
padding: $gutter-half;
|
||||||
@@ -9,6 +10,15 @@
|
|||||||
white-space: normal;
|
white-space: normal;
|
||||||
margin: 0 0 $gutter 0;
|
margin: 0 0 $gutter 0;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p + p {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sms-message-wrapper-with-radio {
|
.sms-message-wrapper-with-radio {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
{{ from }}
|
{{ from }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ body }}
|
{{ body|nl2br }}
|
||||||
</div>
|
</div>
|
||||||
{% if recipient %}
|
{% if recipient %}
|
||||||
<p class="sms-message-recipient">
|
<p class="sms-message-recipient">
|
||||||
|
|||||||
Reference in New Issue
Block a user