diff --git a/src/components/VirtualLotteryRegistrationPage.vue b/src/components/VirtualLotteryRegistrationPage.vue
index 7e0d12a..7122375 100644
--- a/src/components/VirtualLotteryRegistrationPage.vue
+++ b/src/components/VirtualLotteryRegistrationPage.vue
@@ -4,18 +4,14 @@
@@ -28,24 +24,17 @@
-
@@ -77,12 +60,7 @@
-
+
@@ -186,7 +164,7 @@ export default {
},
methods: {
setWithRandomColors(colors) {
- Object.keys(colors).forEach(color => this[color] = colors[color])
+ Object.keys(colors).forEach(color => (this[color] = colors[color]));
},
sendAttendee: async function() {
let response = await addAttendee({
@@ -406,7 +384,6 @@ button {
& .ballots-container {
display: flex;
justify-content: center;
- align-items: center;
}
& .name-and-phone {
diff --git a/src/ui/Attendees.vue b/src/ui/Attendees.vue
index f95a24b..059f4b1 100644
--- a/src/ui/Attendees.vue
+++ b/src/ui/Attendees.vue
@@ -1,17 +1,13 @@
Deltakere ({{ attendees.length }})
-
-
{{ attendee.name }}
-
{{ attendee.red }}
-
- {{ attendee.blue }}
-
-
- {{ attendee.green }}
-
-
- {{ attendee.yellow }}
+
+
+
{{ attendee.name }}
+
{{ attendee.red }}
+
{{ attendee.blue }}
+
{{ attendee.green }}
+
{{ attendee.yellow }}
@@ -23,6 +19,16 @@ export default {
attendees: {
type: Array
}
+ },
+ watch: {
+ attendees: {
+ deep: true,
+ handler() {
+ setTimeout(() => {
+ this.$refs.attendees.scrollTop = this.$refs.attendees.scrollHeight;
+ }, 50);
+ }
+ }
}
};
@@ -53,6 +59,11 @@ export default {
align-items: center;
width: 65%;
height: 100%;
+}
+
+.attendees-container {
+ width: 100%;
+ height: 100%;
overflow-y: scroll;
}
diff --git a/src/ui/Chat.vue b/src/ui/Chat.vue
index e0da226..d104290 100644
--- a/src/ui/Chat.vue
+++ b/src/ui/Chat.vue
@@ -14,14 +14,9 @@
-
-
+
+
+
@@ -88,7 +83,7 @@ export default {
if (date.getDate() == new Date().getDate()) {
return timeString;
}
- return `${date.toLocaleDateString()} ${timeString}`
+ return `${date.toLocaleDateString()} ${timeString}`;
},
sendMessage: function() {
this.$emit("message", this.message);
@@ -147,7 +142,7 @@ input {
.chat-container,
.chat-inner-container {
- height: 100%;
+ height: 95%;
}
.history {