mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-24 17:06:20 -05:00
add lxmf user icon to header bar of conversation
This commit is contained in:
parent
8d1c84f306
commit
72e24e0922
1 changed files with 12 additions and 0 deletions
|
|
@ -6,6 +6,16 @@
|
|||
<!-- header -->
|
||||
<div class="flex p-2 border-b border-gray-300 dark:border-zinc-800">
|
||||
|
||||
<!-- peer icon -->
|
||||
<div class="my-auto mr-2">
|
||||
<div v-if="selectedPeer.lxmf_user_icon" class="p-2 rounded" :style="{ 'color': selectedPeer.lxmf_user_icon.foreground_colour, 'background-color': selectedPeer.lxmf_user_icon.background_colour }">
|
||||
<MaterialDesignIcon :icon-name="selectedPeer.lxmf_user_icon.icon_name" class="w-6 h-6"/>
|
||||
</div>
|
||||
<div v-else class="bg-gray-200 dark:bg-zinc-700 text-gray-500 dark:text-gray-400 p-2 rounded">
|
||||
<MaterialDesignIcon icon-name="account-outline" class="w-6 h-6"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- peer info -->
|
||||
<div>
|
||||
<div @click="updateCustomDisplayName" class="flex cursor-pointer">
|
||||
|
|
@ -403,10 +413,12 @@ import WebSocketConnection from "../../js/WebSocketConnection";
|
|||
import AddAudioButton from "./AddAudioButton.vue";
|
||||
import moment from "moment";
|
||||
import SendMessageButton from "./SendMessageButton.vue";
|
||||
import MaterialDesignIcon from "../MaterialDesignIcon.vue";
|
||||
|
||||
export default {
|
||||
name: 'ConversationViewer',
|
||||
components: {
|
||||
MaterialDesignIcon,
|
||||
SendMessageButton,
|
||||
AddAudioButton,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue