Merge remote-tracking branch 'origin/develop' into themes3

This commit is contained in:
Henry Jameson 2024-02-29 18:49:23 +02:00
commit 54e3a99bc7
29 changed files with 793 additions and 252 deletions

View file

@ -3,11 +3,13 @@ import StillImage from '../still-image/still-image.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faRobot
faRobot,
faPeopleGroup
} from '@fortawesome/free-solid-svg-icons'
library.add(
faRobot
faRobot,
faPeopleGroup
)
const UserAvatar = {
@ -15,7 +17,7 @@ const UserAvatar = {
'user',
'betterShadow',
'compact',
'bot'
'showActorTypeIndicator'
],
data () {
return {

View file

@ -18,9 +18,14 @@
:class="{ '-compact': compact }"
/>
<FAIcon
v-if="bot"
v-if="showActorTypeIndicator && user?.actor_type === 'Service'"
icon="robot"
class="bot-indicator"
class="actor-type-indicator"
/>
<FAIcon
v-if="showActorTypeIndicator && user?.actor_type === 'Group'"
icon="people-group"
class="actor-type-indicator"
/>
</span>
</template>
@ -75,7 +80,7 @@
height: 100%;
}
.bot-indicator {
.actor-type-indicator {
position: absolute;
bottom: 0;
right: 0;