Skip to content

Commit

Permalink
Merge pull request #12 from hmrc/DC-3161
Browse files Browse the repository at this point in the history
DC-3161: small style changes resulting from QA
  • Loading branch information
rwalpole authored Feb 12, 2021
2 parents 02b6ac0 + 98c99eb commit b01e8b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/helpers/HtmlUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import play.api.i18n.Messages

object HtmlUtil {

private val dtf = DateTimeFormat.forPattern("d MMM yyyy HH:mm")
private val dtf = DateTimeFormat.forPattern("d MMMM yyyy")

def getSenderName(conversationHeader: ConversationHeader)(implicit messages: Messages): String =
conversationHeader.senderName match {
Expand Down
5 changes: 4 additions & 1 deletion app/views/partials/conversationInbox.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
.conversation-status {
grid-column:1;
text-align:center;
padding-left: 1ex;
padding-right: 1ex;
}
.conversation-status-marker {
display:inline-block;
Expand All @@ -51,6 +53,7 @@
}
.last-message-sender {
grid-column:2/5;
padding-right: 1em;
}
.conversation-subject {
grid-column:2/6;
Expand Down Expand Up @@ -84,7 +87,7 @@
color: #6F777B;
}
</style>
<h2 class="govuk-heading-l">@heading</h2>
<h1 class="govuk-heading-xl">@heading</h1>
<div class="govuk-body">
<div class="messages" style="display:grid;grid-template-columns:auto auto auto auto auto auto;">
<!-- status header -->
Expand Down
2 changes: 1 addition & 1 deletion test/views/partials/conversationInboxSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class conversationInboxSpec extends TemplateUnitSpec[ConversationInbox] {
"have all mandatory information" in {
render(ConversationInbox("cds-frontend", "test", List.empty)) match {
case Success(component) => {
val res = component.select("h2")
val res = component.select("h1")
res.text mustBe "test"
}
case _ => fail("There was a problem reading the test output")
Expand Down

0 comments on commit b01e8b9

Please sign in to comment.