Attendees list has hr seperators and max-height.

This commit is contained in:
2020-12-31 17:23:25 +01:00
parent d0cf99e8f8
commit e61a6c0432

View File

@@ -1,6 +1,5 @@
<template> <template>
<div class="attendees" v-if="attendees.length > 0"> <div class="attendees" v-if="attendees.length > 0">
<h2>Deltakere ({{ attendees.length }})</h2>
<div class="attendees-container" ref="attendees"> <div class="attendees-container" ref="attendees">
<div class="attendee" v-for="(attendee, index) in flipList(attendees)" :key="index"> <div class="attendee" v-for="(attendee, index) in flipList(attendees)" :key="index">
<span class="attendee-name">{{ attendee.name }}</span> <span class="attendee-name">{{ attendee.name }}</span>
@@ -42,10 +41,16 @@ export default {
@import "../styles/global.scss"; @import "../styles/global.scss";
@import "../styles/variables.scss"; @import "../styles/variables.scss";
@import "../styles/media-queries.scss"; @import "../styles/media-queries.scss";
.attendee-name { .attendee-name {
width: 60%; width: 60%;
} }
hr {
border: 2px solid black;
width: 100%;
}
.raffle-element { .raffle-element {
font-size: 0.75rem; font-size: 0.75rem;
width: 45px; width: 45px;
@@ -56,20 +61,24 @@ export default {
font-weight: bold; font-weight: bold;
font-size: 0.75rem; font-size: 0.75rem;
text-align: center; text-align: center;
&:not(:last-of-type) {
margin-right: 1rem;
}
} }
.attendees { .attendees {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
width: 65%; height: auto;
height: 100%;
} }
.attendees-container { .attendees-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: scroll;
max-height: 550px;
} }
.attendee { .attendee {
@@ -78,5 +87,9 @@ export default {
align-items: center; align-items: center;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
&:not(:last-of-type) {
border-bottom: 2px solid #d7d8d7;
}
} }
</style> </style>