pleroma-fe/src/components/avatar_list/avatar_list.vue

39 lines
734 B
Vue
Raw Normal View History

2019-04-02 13:30:23 +11:00
<template>
<ul class="avatars">
<li class="avatars-item" v-for="avatar in slicedAvatars">
<UserAvatar :src="avatar.profile_image_url" class="avatar-small" />
2019-04-02 13:30:23 +11:00
</li>
</ul>
</template>
<script src="./avatar_list.js" ></script>
<style lang="scss">
@import '../../_variables.scss';
2019-04-02 13:30:23 +11:00
.avatars {
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
// For hiding overflowing elements
flex-wrap: wrap;
height: 24px;
2019-04-07 04:25:26 +10:00
li.avatars-item {
margin: 0 0 5px 5px;
2019-04-05 20:49:31 +11:00
&:first-child {
padding-left: 10px;
2019-04-05 20:49:31 +11:00
}
2019-04-02 19:25:08 +11: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>