forked from mdl29/scratchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserList.vue
44 lines (39 loc) · 874 Bytes
/
UserList.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<ul class="user_list_wrapper">
<li class="user_list_item" v-for="user in users" :key="user.id"> {{user.pseudo}} </li>
</ul>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'user-list',
props: ['users'],
});
</script>
<style scoped>
/*
* not sure how this is supposed to look (on the final thing) so not much rn
*/
.user_list_wrapper {
list-style-type: none;
display: flex;
flex-direction: column;
background-color: var(--bg3);
width: fit-content;
padding: 5px;
margin: 0;
max-width: 130px;
overflow-y: auto;
overflow-x: hidden;
}
.user_list_item {
color: white;
margin-top: 5px;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
overflow: hidden;
padding-left: 10px;
box-sizing: border-box;
}
</style>