show desc if there is only one card, makes it easier on mobile

This commit is contained in:
Alberto Xamin 2021-09-23 18:02:49 +03:00
parent b43e26805c
commit 878333746e
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -62,6 +62,9 @@ export default {
if (this.realCancelText == '') { if (this.realCancelText == '') {
this.realCancelText = this.$t('cancel') this.realCancelText = this.$t('cancel')
} }
if (this.cards.length == 1) {
this.showDesc(this.cards[0])
}
if (this.playAudio) { if (this.playAudio) {
(new Audio(show_sfx)).play(); (new Audio(show_sfx)).play();
} }