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