Add image size to image to match how it was previously

This commit is contained in:
alecdusheck 2020-10-18 22:40:51 -05:00
parent 587249b101
commit 835dcd6d67
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<template v-for="(message, index) in history">
<li :key="index" class="message" v-if="message.type === 'text'">
<div class="author" @contextmenu.stop.prevent="onContext($event, { member: member(message.id) })">
<img :src="`https://ui-avatars.com/api/?name=${member(message.id).displayname}.png`" />
<img :src="`https://ui-avatars.com/api/?name=${member(message.id).displayname}.png&size=40`" />
</div>
<div class="content">
<div class="content-head">

View File

@ -3,7 +3,7 @@
<template slot-scope="child" v-if="child.data">
<li class="header">
<div class="user">
<img :src="`https://ui-avatars.com/api/?name=${child.data.member.displayname}.png`" />
<img :src="`https://ui-avatars.com/api/?name=${child.data.member.displayname}.png&size=25`" />
<strong>{{ child.data.member.displayname }}</strong>
</div>
</li>

View File

@ -4,7 +4,7 @@
<ul class="members-list">
<li v-if="member">
<div :class="[{ host: member.id === host }, 'self', 'member']">
<img :src="`https://ui-avatars.com/api/?name=${member.displayname}.png`" />
<img :src="`https://ui-avatars.com/api/?name=${member.displayname}.png&size=50`" />
</div>
</li>
<template v-for="(member, index) in members">
@ -15,7 +15,7 @@
>
<div :class="[{ host: member.id === host, admin: member.admin }, 'member']">
<img
:src="`https://ui-avatars.com/api/?name=${member.displayname}.png`"
:src="`https://ui-avatars.com/api/?name=${member.displayname}.png&size=50`"
@contextmenu.stop.prevent="onContext($event, { member })"
/>
</div>