2023-07-15 20:39:33 -07:00
|
|
|
<template>
|
|
|
|
|
<div
|
|
|
|
|
class="message"
|
|
|
|
|
:class="{
|
|
|
|
|
'has-body': message.body.type === 'text' && !forceCompact,
|
|
|
|
|
'no-actions': noLinks,
|
|
|
|
|
private: message.body.private,
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
<template v-if="members[message.author_id]">
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
<AutoLink
|
2023-07-15 20:39:33 -07:00
|
|
|
class="message__icon"
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
:to="noLinks ? '' : `/user/${members[message.author_id].username}`"
|
2023-07-15 20:39:33 -07:00
|
|
|
tabindex="-1"
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
>
|
|
|
|
|
<Avatar
|
|
|
|
|
class="message__icon"
|
|
|
|
|
:src="members[message.author_id].avatar_url"
|
|
|
|
|
circle
|
|
|
|
|
:raised="raised"
|
|
|
|
|
/>
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
</AutoLink>
|
2023-07-15 20:39:33 -07:00
|
|
|
<span :class="`message__author role-${members[message.author_id].role}`">
|
2024-01-09 13:32:38 -08:00
|
|
|
<LockIcon
|
2023-07-15 20:39:33 -07:00
|
|
|
v-if="message.body.private"
|
2024-01-09 13:32:38 -08:00
|
|
|
v-tooltip="'Only visible to moderators'"
|
2023-07-15 20:39:33 -07:00
|
|
|
class="private-icon"
|
|
|
|
|
/>
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
<AutoLink :to="noLinks ? '' : `/user/${members[message.author_id].username}`">
|
2023-07-15 20:39:33 -07:00
|
|
|
{{ members[message.author_id].username }}
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
</AutoLink>
|
2024-01-09 13:32:38 -08:00
|
|
|
<ScaleIcon v-if="members[message.author_id].role === 'moderator'" v-tooltip="'Moderator'" />
|
2023-07-15 20:39:33 -07:00
|
|
|
<ModrinthIcon
|
|
|
|
|
v-else-if="members[message.author_id].role === 'admin'"
|
|
|
|
|
v-tooltip="'Modrinth Team'"
|
|
|
|
|
/>
|
2024-01-09 13:32:38 -08:00
|
|
|
<MicrophoneIcon
|
2025-07-29 22:19:25 +01:00
|
|
|
v-if="report && message.author_id === report.reporter_user?.id"
|
2023-07-15 20:39:33 -07:00
|
|
|
v-tooltip="'Reporter'"
|
|
|
|
|
class="reporter-icon"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div class="message__icon backed-svg circle moderation-color" :class="{ raised: raised }">
|
2024-01-09 13:32:38 -08:00
|
|
|
<ScaleIcon />
|
2023-07-15 20:39:33 -07:00
|
|
|
</div>
|
|
|
|
|
<span class="message__author moderation-color">
|
|
|
|
|
Moderator
|
2024-01-09 13:32:38 -08:00
|
|
|
<ScaleIcon v-tooltip="'Moderator'" />
|
2023-07-15 20:39:33 -07:00
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
<div
|
|
|
|
|
v-if="message.body.type === 'text'"
|
|
|
|
|
class="message__body markdown-body"
|
|
|
|
|
v-html="formattedMessage"
|
|
|
|
|
/>
|
|
|
|
|
<div v-else class="message__body status-message">
|
|
|
|
|
<span v-if="message.body.type === 'deleted'"> posted a message that has been deleted. </span>
|
|
|
|
|
<template v-else-if="message.body.type === 'status_change'">
|
|
|
|
|
<span v-if="message.body.new_status === 'processing'">
|
|
|
|
|
submitted the project for review.
|
|
|
|
|
</span>
|
|
|
|
|
<span v-else>
|
|
|
|
|
changed the project's status from <Badge :type="message.body.old_status" /> to
|
|
|
|
|
<Badge :type="message.body.new_status" />.
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
<span v-else-if="message.body.type === 'thread_closure'">closed the thread.</span>
|
2024-01-10 10:33:57 -08:00
|
|
|
<span v-else-if="message.body.type === 'thread_reopen'">reopened the thread.</span>
|
2023-07-15 20:39:33 -07:00
|
|
|
</div>
|
|
|
|
|
<span class="message__date">
|
|
|
|
|
<span v-tooltip="$dayjs(message.created).format('MMMM D, YYYY [at] h:mm A')">
|
|
|
|
|
{{ timeSincePosted }}
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
2024-01-09 13:32:38 -08:00
|
|
|
<div v-if="isStaff(auth.user) && message.author_id === auth.user.id" class="message__actions">
|
|
|
|
|
<OverflowMenu
|
|
|
|
|
class="btn btn-transparent icon-only"
|
|
|
|
|
:options="[
|
|
|
|
|
{
|
|
|
|
|
id: 'delete',
|
|
|
|
|
action: () => deleteMessage(),
|
|
|
|
|
color: 'red',
|
|
|
|
|
hoverFilled: true,
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
>
|
|
|
|
|
<MoreHorizontalIcon />
|
|
|
|
|
<template #delete> <TrashIcon /> Delete </template>
|
|
|
|
|
</OverflowMenu>
|
|
|
|
|
</div>
|
2023-07-15 20:39:33 -07:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2024-01-09 13:32:38 -08:00
|
|
|
import {
|
|
|
|
|
MoreHorizontalIcon,
|
|
|
|
|
TrashIcon,
|
|
|
|
|
MicrophoneIcon,
|
|
|
|
|
LockIcon,
|
|
|
|
|
ModrinthIcon,
|
|
|
|
|
ScaleIcon,
|
2024-07-06 20:57:32 -07:00
|
|
|
} from "@modrinth/assets";
|
2025-06-18 17:07:15 -07:00
|
|
|
import { AutoLink, Avatar, Badge, OverflowMenu, useRelativeTime } from "@modrinth/ui";
|
2024-07-06 20:57:32 -07:00
|
|
|
import { renderString } from "@modrinth/utils";
|
|
|
|
|
import { isStaff } from "~/helpers/users.js";
|
2023-07-15 20:39:33 -07:00
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
message: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
report: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: null,
|
|
|
|
|
},
|
|
|
|
|
members: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => {},
|
|
|
|
|
},
|
|
|
|
|
forceCompact: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
noLinks: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
raised: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
2024-01-09 13:32:38 -08:00
|
|
|
auth: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
2024-07-06 20:57:32 -07:00
|
|
|
});
|
2023-07-15 20:39:33 -07:00
|
|
|
|
2024-07-06 20:57:32 -07:00
|
|
|
const emit = defineEmits(["update-thread"]);
|
2024-01-09 13:32:38 -08:00
|
|
|
|
2023-07-15 20:39:33 -07:00
|
|
|
const formattedMessage = computed(() => {
|
2024-07-06 20:57:32 -07:00
|
|
|
const body = renderString(props.message.body.body);
|
2023-07-15 20:39:33 -07:00
|
|
|
if (props.forceCompact) {
|
2024-07-06 20:57:32 -07:00
|
|
|
const hasImage = body.includes("<img");
|
|
|
|
|
const noHtml = body.replace(/<\/?[^>]+(>|$)/g, "");
|
2023-07-15 20:39:33 -07:00
|
|
|
if (noHtml.trim()) {
|
2024-07-06 20:57:32 -07:00
|
|
|
return noHtml;
|
2023-07-15 20:39:33 -07:00
|
|
|
} else if (hasImage) {
|
2024-07-06 20:57:32 -07:00
|
|
|
return "sent an image.";
|
2023-07-15 20:39:33 -07:00
|
|
|
} else {
|
2024-07-06 20:57:32 -07:00
|
|
|
return "sent a message.";
|
2023-07-15 20:39:33 -07:00
|
|
|
}
|
|
|
|
|
}
|
2024-07-06 20:57:32 -07:00
|
|
|
return body;
|
|
|
|
|
});
|
2023-07-15 20:39:33 -07:00
|
|
|
|
2024-07-06 20:57:32 -07:00
|
|
|
const formatRelativeTime = useRelativeTime();
|
|
|
|
|
const timeSincePosted = ref(formatRelativeTime(props.message.created));
|
2024-01-09 13:32:38 -08:00
|
|
|
|
|
|
|
|
async function deleteMessage() {
|
|
|
|
|
await useBaseFetch(`message/${props.message.id}`, {
|
2024-07-06 20:57:32 -07:00
|
|
|
method: "DELETE",
|
|
|
|
|
});
|
|
|
|
|
emit("update-thread");
|
2024-01-09 13:32:38 -08:00
|
|
|
}
|
2023-07-15 20:39:33 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.message {
|
|
|
|
|
--gap-size: var(--spacing-card-xs);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
gap: var(--gap-size);
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border-radius: var(--size-rounded-card);
|
|
|
|
|
padding: var(--spacing-card-md);
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
|
|
|
|
|
.avatar,
|
|
|
|
|
.backed-svg {
|
|
|
|
|
--size: 1.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.has-body {
|
|
|
|
|
--gap-size: var(--spacing-card-sm);
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template:
|
2024-07-06 20:57:32 -07:00
|
|
|
"icon author actions"
|
|
|
|
|
"icon body actions"
|
|
|
|
|
"date date date";
|
2023-07-15 20:39:33 -07:00
|
|
|
grid-template-columns: min-content auto 1fr;
|
|
|
|
|
column-gap: var(--gap-size);
|
|
|
|
|
row-gap: var(--spacing-card-xs);
|
|
|
|
|
|
|
|
|
|
.message__icon {
|
|
|
|
|
margin-bottom: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar,
|
|
|
|
|
.backed-svg {
|
|
|
|
|
--size: 3rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:not(.no-actions):hover,
|
|
|
|
|
&:not(.no-actions):focus-within {
|
|
|
|
|
background-color: var(--color-table-alternate-row);
|
|
|
|
|
|
|
|
|
|
.message__actions {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.no-actions {
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
.message__actions {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message__icon {
|
|
|
|
|
grid-area: icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message__author {
|
|
|
|
|
grid-area: author;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--spacing-card-xs);
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message__date {
|
|
|
|
|
grid-area: date;
|
|
|
|
|
font-size: var(--font-size-xs);
|
|
|
|
|
color: var(--color-text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message__actions {
|
|
|
|
|
grid-area: actions;
|
|
|
|
|
margin-left: auto;
|
2024-01-09 13:32:38 -08:00
|
|
|
|
|
|
|
|
@media (hover: hover) {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
2023-07-15 20:39:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message__body {
|
|
|
|
|
grid-area: body;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-message > span {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--spacing-card-xs);
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
a {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:focus-visible + .message__author a,
|
|
|
|
|
a:hover + .message__author a,
|
|
|
|
|
.message__author a:focus-visible,
|
|
|
|
|
.message__author a:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
filter: var(--hover-filter);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:active + .message__author a,
|
|
|
|
|
.message__author a:active {
|
|
|
|
|
filter: var(--active-filter);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.moderation-color,
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
.role-moderator {
|
2024-06-11 19:46:07 -07:00
|
|
|
color: var(--color-orange);
|
2023-07-15 20:39:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.role-admin {
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
color: var(--color-green);
|
2023-07-15 20:39:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.reporter-icon {
|
2024-06-11 19:46:07 -07:00
|
|
|
color: var(--color-purple);
|
2023-07-15 20:39:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.private-icon {
|
2024-06-11 19:46:07 -07:00
|
|
|
color: var(--color-gray);
|
2023-07-15 20:39:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (min-width: 600px) {
|
|
|
|
|
.message {
|
|
|
|
|
//grid-template:
|
|
|
|
|
// 'icon author body'
|
|
|
|
|
// 'date date date';
|
|
|
|
|
//grid-template-columns: min-content auto 1fr;
|
|
|
|
|
|
|
|
|
|
&.has-body {
|
|
|
|
|
grid-template:
|
2024-07-06 20:57:32 -07:00
|
|
|
"icon author actions"
|
|
|
|
|
"icon body actions"
|
|
|
|
|
"date date date";
|
2023-07-15 20:39:33 -07:00
|
|
|
grid-template-columns: min-content auto 1fr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (min-width: 1024px) {
|
|
|
|
|
.message {
|
|
|
|
|
//grid-template: 'icon author body date';
|
|
|
|
|
//grid-template-columns: min-content auto 1fr auto;
|
|
|
|
|
|
|
|
|
|
&.has-body {
|
|
|
|
|
grid-template:
|
2024-07-06 20:57:32 -07:00
|
|
|
"icon author date actions"
|
|
|
|
|
"icon body body actions";
|
2023-07-15 20:39:33 -07:00
|
|
|
grid-template-columns: min-content auto 1fr;
|
|
|
|
|
grid-template-rows: min-content 1fr auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.private {
|
|
|
|
|
color: var(--color-icon);
|
|
|
|
|
}
|
|
|
|
|
</style>
|