Add color hash for user avatar backgrounds
This commit is contained in:
@@ -100,6 +100,7 @@
|
||||
<img
|
||||
v-bind:src="message.image"
|
||||
class="message-avatar rounded-full bg-black bg-opacity-50"
|
||||
v-bind:style="{ backgroundColor: message.userColor() }"
|
||||
/>
|
||||
<div class="message-content">
|
||||
<p class="message-author text-white font-bold">{{ message.author }}</p>
|
||||
@@ -137,6 +138,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/usercolors.js"></script>
|
||||
<script src="js/config.js"></script>
|
||||
<script src="js/utils.js"></script>
|
||||
<script src="js/message.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user