Merge branch 'irc-colours' into fallback-server-icons

This commit is contained in:
Twig 2025-07-14 19:51:12 +02:00
commit bbc822604f
No known key found for this signature in database
6 changed files with 29 additions and 2 deletions

View file

@ -40,7 +40,7 @@
</div>
<div class="message-data">
<div class="message-metadata">
<span class="message-author-username" tabindex="0">
<span class="message-author-username" tabindex="0" :style="`color: ${props.authorColor}`">
{{ author?.display_name || author?.username }}
</span>
<span class="message-date" :title="date.toString()">
@ -75,6 +75,7 @@ import { parse } from 'marked';
import type { MessageProps } from '~/types/props';
import MessageMedia from './MessageMedia.vue';
import MessageReply from './UserInterface/MessageReply.vue';
import generateIrcColor from '~/utils/generateIrcColor';
const props = defineProps<MessageProps>();

View file

@ -7,6 +7,7 @@
:margin-bottom="(messages[i + 1] && messagesType[messages[i + 1].uuid] == 'normal') ?? false"
:last="i == messages.length - 1" :message-id="message.uuid" :author="message.user" :me="me"
:message="message" :is-reply="message.reply_to"
:author-color="`${generateIrcColor(message.user.uuid)}`"
:reply-message="message.reply_to ? getReplyMessage(message.reply_to) : undefined" />
</div>
<div id="message-box" class="rounded-corners">