From 19444a8e5ad86fbb14e1a34efbbe4b4651b82362 Mon Sep 17 00:00:00 2001 From: Tobi Awe Date: Mon, 27 Jul 2026 16:01:50 +0100 Subject: [PATCH] date wrap fixed --- .../Styles/nhsuk/pages/mylearning.scss | 14 ++++-- .../Views/MyLearning/Badges.cshtml | 44 +++++++++---------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/LearningHub.Nhs.WebUI/Styles/nhsuk/pages/mylearning.scss b/LearningHub.Nhs.WebUI/Styles/nhsuk/pages/mylearning.scss index 67ac4e30..39c8cde0 100644 --- a/LearningHub.Nhs.WebUI/Styles/nhsuk/pages/mylearning.scss +++ b/LearningHub.Nhs.WebUI/Styles/nhsuk/pages/mylearning.scss @@ -229,6 +229,7 @@ /* Text column */ .badge-header__text-col { flex: 1 1 auto; + min-width: 0; } @@ -245,11 +246,18 @@ .badge-dates-row { display: flex; + //justify-content: space-between; align-items: center; - gap: 24px; + width: 100%; + gap: 12px; + } + + .badge-dates-row > span { + white-space: nowrap; } - .badge-dates-separator { - flex: 0 0 1px; + .badge-expiry { + margin-left: auto; + text-align: right; } } diff --git a/LearningHub.Nhs.WebUI/Views/MyLearning/Badges.cshtml b/LearningHub.Nhs.WebUI/Views/MyLearning/Badges.cshtml index 40ba86e7..b946f514 100644 --- a/LearningHub.Nhs.WebUI/Views/MyLearning/Badges.cshtml +++ b/LearningHub.Nhs.WebUI/Views/MyLearning/Badges.cshtml @@ -75,27 +75,27 @@
-
+
+ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - Badges and Certificates -
+ + + Badges and Certificates +
@if (errorHasOccurred) @@ -156,7 +156,7 @@ var d when d.Value.Date == today.AddDays(-1) => "Yesterday", var d => d.Value.ToString("dd/MM/yyyy") }; - +
@@ -187,11 +187,11 @@ On: @activityText - + @if (expiryDate != null) { - + Expiry: @expiryDate.Value.ToString("dd/MM/yyyy")