Use square for avatar channels

This commit is contained in:
Chocobozzz 2021-07-01 09:24:54 +02:00
parent 16ca5f682b
commit cecd85e910
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<template>
<a v-bind:href="actor.url" rel="nofollow noreferrer noopener" target="_blank" class="actor" v-bind:title="linkTitle">
<img v-if="actor.avatar" v-bind:src="actor.avatar.url" alt="">
<img v-if="actor.avatar" v-bind:src="actor.avatar.url" alt="" :class="{ account: isAccount }">
<strong>{{ actor.displayName }}</strong>
@ -24,12 +24,15 @@
img {
object-fit: cover;
border-radius: 50%;
width: 20px;
height: 20px;
min-width: 20px;
min-height: 20px;
margin-right: 5px;
&.account {
border-radius: 50%;
}
}
.actor-handle {
@ -67,6 +70,10 @@
if (this.type === 'channel') return this.$gettext('Go on this channel page')
return this.$gettext('Go on this account page')
},
isAccount (): boolean {
return this.type === 'account'
}
}
})

View File

@ -48,7 +48,6 @@
img {
object-fit: cover;
border-radius: 50%;
width: 110px;
height: 110px;
min-width: 110px;