feat: add IRC colours, without a toggle for now
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed

This commit is contained in:
Twig 2025-07-13 18:16:02 +02:00
parent be5d65883b
commit 9b7de48c02
No known key found for this signature in database
4 changed files with 18 additions and 1 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()">
@ -71,6 +71,7 @@
import DOMPurify from 'dompurify';
import { parse } from 'marked';
import type { MessageProps } from '~/types/props';
import generateIrcColor from '~/utils/generateIrcColor';
const props = defineProps<MessageProps>();
@ -117,6 +118,8 @@ onMounted(async () => {
// showHover.value = !showHover.value;
//}
console.log(props.authorColor)
const menuItems = [
{ name: "Reply", callback: () => { if (messageElement.value) replyToMessage(messageElement.value, props) } }
]