feat: add IRC colours, without a toggle for now
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed
This commit is contained in:
parent
be5d65883b
commit
9b7de48c02
4 changed files with 18 additions and 1 deletions
|
@ -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) } }
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue