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

44 lines
698 B
Vue
Raw Normal View History

2019-04-02 02:30:23 +00:00
<template>
2019-04-22 18:07:29 +00:00
<div class="avatars">
<router-link
v-for="user in slicedUsers"
:key="user.id"
2019-07-05 07:17:44 +00:00
:to="userProfileLink(user)"
class="avatars-item"
>
2019-07-05 07:17:44 +00:00
<UserAvatar
:user="user"
class="avatar-small"
/>
</router-link>
2019-04-22 18:07:29 +00:00
</div>
2019-04-02 02:30:23 +00:00
</template>
2022-07-31 09:35:48 +00:00
<script src="./avatar_list.js"></script>
2019-04-02 02:30:23 +00:00
<style lang="scss">
.avatars {
display: flex;
2019-04-02 02:30:23 +00:00
margin: 0;
2019-04-05 03:12:37 +00:00
padding: 0;
2019-04-02 02:30:23 +00:00
// For hiding overflowing elements
flex-wrap: wrap;
height: 24px;
2019-04-22 18:07:29 +00:00
.avatars-item {
margin: 0 0 5px 5px;
2019-04-05 09:49:31 +00:00
&:first-child {
2019-04-22 18:07:29 +00:00
padding-left: 5px;
2019-04-05 09:49:31 +00:00
}
2019-04-02 08:25:08 +00:00
.avatar-small {
2024-03-04 17:45:42 +00:00
border-radius: var(--roundness);
2019-04-06 18:25:26 +00:00
height: 24px;
width: 24px;
2019-04-02 02:30:23 +00:00
}
}
}
</style>