From 9646dea44a1329295db5cf1624c3c9b5fc396c54 Mon Sep 17 00:00:00 2001 From: koko Date: Sun, 21 May 2023 21:40:34 -0400 Subject: [PATCH] Fix mod reason/notes overflow issue & show expiration time if applicable (#765) * Fix mod reason/notes overflow issue & show expiration time if applicable * Remove extra whitespace * Wrap using line break instead of overflow scroll bar * Remove un-required overflow inline style --- .../Pages/Partials/ModerationCasePartial.cshtml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/Partials/ModerationCasePartial.cshtml b/ProjectLighthouse.Servers.Website/Pages/Partials/ModerationCasePartial.cshtml index e047b4cb..60f73d77 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Partials/ModerationCasePartial.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Partials/ModerationCasePartial.cshtml @@ -49,6 +49,10 @@ Case created by @Model.Creator.Username on @TimeZoneInfo.ConvertTime(Model.CreatedAt, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt") + @if (Model.ExpiresAt != null) + { + until @TimeZoneInfo.ConvertTime(Model.ExpiresAt!.Value, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt") + }
} else @@ -56,6 +60,10 @@ Case created by @Model.CreatorUsername on @TimeZoneInfo.ConvertTime(Model.CreatedAt, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt") + @if (Model.ExpiresAt != null) + { + until @TimeZoneInfo.ConvertTime(Model.ExpiresAt!.Value, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt") + }
} @@ -80,7 +88,7 @@

Reason

@if (!string.IsNullOrWhiteSpace(Model.Reason)) { -
@Model.Reason
+
@Model.Reason
} else { @@ -90,7 +98,7 @@

Moderator Notes

@if (!string.IsNullOrWhiteSpace(Model.ModeratorNotes)) { -
@Model.ModeratorNotes
+
@Model.ModeratorNotes
} else {