2019-04-02 13:30:23 +11:00
|
|
|
<template>
|
2019-04-23 04:07:29 +10:00
|
|
|
<div class="avatars">
|
2019-06-19 02:31:20 +10:00
|
|
|
<router-link
|
|
|
|
v-for="user in slicedUsers"
|
|
|
|
:key="user.id"
|
2019-07-05 17:17:44 +10:00
|
|
|
:to="userProfileLink(user)"
|
|
|
|
class="avatars-item"
|
2019-06-19 02:31:20 +10:00
|
|
|
>
|
2019-07-05 17:17:44 +10:00
|
|
|
<UserAvatar
|
|
|
|
:user="user"
|
|
|
|
class="avatar-small"
|
|
|
|
/>
|
2019-05-09 02:04:33 +10:00
|
|
|
</router-link>
|
2019-04-23 04:07:29 +10:00
|
|
|
</div>
|
2019-04-02 13:30:23 +11:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./avatar_list.js" ></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
2019-04-18 01:28:44 +10:00
|
|
|
|
2019-04-02 13:30:23 +11:00
|
|
|
.avatars {
|
2019-04-18 01:28:44 +10:00
|
|
|
display: flex;
|
2019-04-02 13:30:23 +11:00
|
|
|
margin: 0;
|
2019-04-05 14:12:37 +11:00
|
|
|
padding: 0;
|
2019-04-02 13:30:23 +11:00
|
|
|
|
2019-04-18 01:28:44 +10:00
|
|
|
// For hiding overflowing elements
|
|
|
|
flex-wrap: wrap;
|
|
|
|
height: 24px;
|
|
|
|
|
2019-04-23 04:07:29 +10:00
|
|
|
.avatars-item {
|
2019-04-18 01:28:44 +10:00
|
|
|
margin: 0 0 5px 5px;
|
2019-04-05 20:49:31 +11:00
|
|
|
|
|
|
|
&:first-child {
|
2019-04-23 04:07:29 +10:00
|
|
|
padding-left: 5px;
|
2019-04-05 20:49:31 +11:00
|
|
|
}
|
2019-04-02 19:25:08 +11:00
|
|
|
|
2019-04-18 01:28:44 +10:00
|
|
|
.avatar-small {
|
2019-04-03 07:00:09 +11:00
|
|
|
border-radius: $fallback--avatarAltRadius;
|
|
|
|
border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
|
2019-04-07 04:25:26 +10:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2019-04-02 13:30:23 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|