From ec1215f2ae6b338e05b4f3420b258ac4781eae08 Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 31 May 2025 18:48:33 +0000 Subject: [PATCH] Release 202505311848 --- web/src/components/CommentItem.astro | 21 ++++++++++++------- web/src/components/CommentModeration.astro | 2 +- web/src/components/CommentReply.astro | 2 +- web/src/components/ServiceLinkButton.astro | 19 +++++++++++++++++ .../pages/admin/services/[slug]/edit.astro | 9 ++++++++ 5 files changed, 44 insertions(+), 9 deletions(-) diff --git a/web/src/components/CommentItem.astro b/web/src/components/CommentItem.astro index 25c7c47..6056290 100644 --- a/web/src/components/CommentItem.astro +++ b/web/src/components/CommentItem.astro @@ -102,7 +102,7 @@ const commentUrl = makeCommentUrl({ serviceSlug, commentId: comment.id, origin: {...htmlProps} id={`comment-${comment.id.toString()}`} class={cn([ - 'group', + 'group bg-night-700', depth > 0 && 'ml-3 border-b-0 border-l border-zinc-800 pt-2 pl-2 sm:ml-4', comment.author.serviceAffiliations.some((affiliation) => affiliation.service.slug === serviceSlug) && 'bg-[#182a1f]', @@ -270,12 +270,6 @@ const commentUrl = makeCommentUrl({ serviceSlug, commentId: comment.id, origin: {comment.suspicious && } - { - comment.requiresAdminReview && isAuthorOrPrivileged && ( - - ) - } - { comment.rating !== null && !comment.parentId && ( + ) + } + + { + comment.requiresAdminReview && isAuthorOrPrivileged && ( + ) } diff --git a/web/src/components/CommentModeration.astro b/web/src/components/CommentModeration.astro index 4d8eeb3..386c5ce 100644 --- a/web/src/components/CommentModeration.astro +++ b/web/src/components/CommentModeration.astro @@ -89,7 +89,7 @@ if (!user || !user.admin || !user.moderator) return null data-comment-id={comment.id} data-user-id={user.id} > - {comment.requiresAdminReview ? 'No Admin Review' : 'Admin Review'} + {comment.requiresAdminReview ? 'No Admin Review' : 'Needs Admin Review'}