From 89877d359fff576ad6e7c61ffa4b489a6650dd51 Mon Sep 17 00:00:00 2001 From: koko Date: Thu, 30 Mar 2023 02:03:12 -0400 Subject: [PATCH] Add comment form max char limit validation (#722) * Add comment form max char limit validation, minor visual nitpick * Italicize banned/disabled/etc messages within comments --- .../Pages/Partials/CommentsPartial.cshtml | 8 +++----- ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml b/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml index 6c607a20..122df763 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Partials/CommentsPartial.cshtml @@ -15,13 +15,11 @@
@if (Model.Comments.Count == 0 && Model.CommentsEnabled) { -

There are no comments.

+

There are no comments.

} else if (!Model.CommentsEnabled) { - - Comments are disabled. - +

Comments are disabled.

} else { @@ -34,7 +32,7 @@
- +
diff --git a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml index 0fa0a5f4..eb42c093 100644 --- a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml @@ -181,7 +181,7 @@ @if (Model.ProfileUser.IsBanned) {
-

Comments are disabled because the user is banned.

+

Comments are disabled because the user is banned.

} else