Skip to content

Commit

Permalink
MLPAB-2039 Respect line breaks when showing textarea input again (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Apr 25, 2024
1 parent 5c2ada2 commit 1a76e4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 4 additions & 0 deletions web/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,7 @@ body:not(.js-enabled) .govuk-back-link {
.app-full-width {
max-width: 100% !important;
}

.app-wrap-text {
white-space: pre-wrap;
}
12 changes: 3 additions & 9 deletions web/template/layout/lpa-decisions.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@
<dt class="govuk-summary-list__key">
{{ tr .App $title }}
</dt>
<dd class="govuk-summary-list__value">
{{ trHtml .App .Lpa.AttorneyDecisions.Details }}
</dd>
<dd class="govuk-summary-list__value app-wrap-text">{{ trHtml .App .Lpa.AttorneyDecisions.Details }}</dd>
{{ if .CanChange }}
<dd class="govuk-summary-list__actions">
<a class="govuk-link" href="{{ link .App (global.Paths.HowShouldAttorneysMakeDecisions.Format .App.LpaID) }}?from={{ .App.Page }}#f-mixed-details">
Expand Down Expand Up @@ -174,9 +172,7 @@
<dt class="govuk-summary-list__key">
{{ tr .App $title }}
</dt>
<dd class="govuk-summary-list__value">
{{ trHtml .App .Lpa.ReplacementAttorneyDecisions.Details }}
</dd>
<dd class="govuk-summary-list__value app-wrap-text">{{ trHtml .App .Lpa.ReplacementAttorneyDecisions.Details }}</dd>
{{ if .CanChange }}
<dd class="govuk-summary-list__actions">
<a class="govuk-link" href="{{ link .App (global.Paths.HowShouldReplacementAttorneysMakeDecisions.Format .App.LpaID) }}?from={{ .App.Page }}#f-mixed-details">
Expand Down Expand Up @@ -241,9 +237,7 @@
<dt class="govuk-summary-list__key">
{{ tr .App "restrictions" }}
</dt>
<dd class="govuk-summary-list__value">
<p class="govuk-body">{{ .Lpa.Restrictions }}</p>
</dd>
<dd class="govuk-summary-list__value app-wrap-text">{{ .Lpa.Restrictions }}</dd>
{{ if .CanChange }}
<dd class="govuk-summary-list__actions">
<a class="govuk-link" href="{{ link .App (global.Paths.Restrictions.Format .App.LpaID) }}">
Expand Down

0 comments on commit 1a76e4f

Please sign in to comment.