From 4f911bd578fcd82a9e5c5863037cdc5efd560fc8 Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Fri, 5 Apr 2019 23:15:34 -0700 Subject: [PATCH] Improve add game toast, added cover and custom dynamic text --- src/components/GameCard/GameCard.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/GameCard/GameCard.vue b/src/components/GameCard/GameCard.vue index 8014d646..957b556b 100755 --- a/src/components/GameCard/GameCard.vue +++ b/src/components/GameCard/GameCard.vue @@ -164,7 +164,10 @@ export default { db.collection('lists').doc(this.user.uid).set(this.gameLists, { merge: true }) .then(() => { - this.$bus.$emit('TOAST', { message: 'Game added to list' }); + this.$bus.$emit('TOAST', { + message: `Added ${this.game.name} added to ${this.list.name}`, + imageUrl: this.coverUrl, + }); }) .catch(() => { this.$bus.$emit('TOAST', { message: 'Authentication error', type: 'error' }); @@ -229,7 +232,7 @@ export default { .game-info { position: absolute; padding: $gp / 3; - font-size: 10px; + font-size: 12px; min-height: 40px; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);