From e297dff0d4545ee4a6857f85a46c251b1fecfddd Mon Sep 17 00:00:00 2001 From: triphora Date: Sun, 20 Nov 2022 15:49:29 -0500 Subject: [PATCH] Massively improved moderator message visibility (#754) Co-authored-by: Prospector --- components/ui/ProjectCard.vue | 23 ++++++++- pages/_type/_id.vue | 87 +++++++++++++++++++++++++---------- pages/user/_id.vue | 6 ++- 3 files changed, 88 insertions(+), 28 deletions(-) diff --git a/components/ui/ProjectCard.vue b/components/ui/ProjectCard.vue index 088eb06a3..f4c5167a7 100644 --- a/components/ui/ProjectCard.vue +++ b/components/ui/ProjectCard.vue @@ -12,8 +12,16 @@

{{ name }} + + {{ name }} +

by @@ -155,6 +163,7 @@ import Categories from '~/components/ui/search/Categories' import Badge from '~/components/ui/Badge' import InfoIcon from '~/assets/images/utils/info.svg?inline' +import IssuesIcon from '~/assets/images/utils/issues.svg?inline' import CalendarIcon from '~/assets/images/utils/calendar.svg?inline' import EditIcon from '~/assets/images/utils/updated.svg?inline' import DownloadIcon from '~/assets/images/utils/download.svg?inline' @@ -168,6 +177,7 @@ export default { Categories, Badge, InfoIcon, + IssuesIcon, CalendarIcon, EditIcon, DownloadIcon, @@ -227,6 +237,10 @@ export default { type: String, default: null, }, + hasModMessage: { + type: Boolean, + default: false, + }, serverSide: { type: String, required: false, @@ -301,6 +315,13 @@ export default { color: var(--color-text-dark); font-size: var(--font-size-xl); word-wrap: break-word; + + svg { + width: auto; + color: var(--color-badge-yellow-text); + height: 1.5rem; + margin-bottom: -0.25rem; + } } .author { diff --git a/pages/_type/_id.vue b/pages/_type/_id.vue index aa367a973..cf528f64e 100644 --- a/pages/_type/_id.vue +++ b/pages/_type/_id.vue @@ -199,28 +199,53 @@

+

+ Your project has been rejected by Modrinth's staff. In most cases, + you can resubmit for review after addressing the staff's message, + which is below. Do not resubmit until you've addressed the message + from the moderators! +

Your project is currently not viewable by people who are not part of your team. Please wait for our moderators to manually review your project to see if it abides by our - content rules! + content rules! +

Your project is currently not viewable by people who are not part - of your team. If your project is ready for review, click the - button below to make your mod public! + of your team. If you would like to publish your project, click the + button below to send your project in for review.

-

- {{ project.moderator_message.message }} -

-
+
+
+
+

+ Message from the Modrinth moderators: +

+

+ {{ project.moderator_message.message }} +

+
+
+
+

+ Message from the Modrinth moderators: +

+

{{ project.moderator_message.message }}

+
+
+
-
+
-

- Do not resubmit for review until you've addressed the moderator - message! -