yandere_fe/src/components/avatar_list/avatar_list.vue

35 lines
812 B
Vue
Raw Normal View History

2019-04-01 19:30:23 -07:00
<template>
2019-04-02 13:00:09 -07:00
<ul class="avatars">
<li class="avatars-item" v-for="(avatar, index) in slicedAvatars" :key="`avatar-${index}`">
<UserAvatar :src="avatar.profile_image_url" class="avatars-img" />
2019-04-01 19:30:23 -07:00
</li>
</ul>
</template>
<script src="./avatar_list.js" ></script>
<style lang="scss">
@import '../../_variables.scss';
.avatars {
display: inline-flex; /* Causes LI items to display in row. */
list-style-type: none;
margin: 0;
padding: 0px 15px 0px 0px;
flex-direction: row-reverse;
2019-04-01 19:30:23 -07:00
&-item {
2019-04-02 13:00:09 -07:00
height: 25px;
2019-04-01 19:30:23 -07:00
margin: 0;
padding: 0;
width: 15px;
2019-04-02 01:25:08 -07:00
.avatars-img {
2019-04-02 13:00:09 -07:00
border-radius: $fallback--avatarAltRadius;
border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
height: 25px !important;
width: 25px !important;
2019-04-01 19:30:23 -07:00
}
}
}
</style>