From f119935467d4a84e6aed022c97ad9479f2ae4c38 Mon Sep 17 00:00:00 2001 From: Settel Date: Mon, 10 Oct 2022 19:31:32 +0200 Subject: [PATCH] css: adapt Playground to smartphone --- client/src/assets/css/media.scss | 1 + client/src/components/Playground.vue | 40 +++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/client/src/assets/css/media.scss b/client/src/assets/css/media.scss index c0f941c..4c73005 100644 --- a/client/src/assets/css/media.scss +++ b/client/src/assets/css/media.scss @@ -1,3 +1,4 @@ $phone-width: 560px; $phone-max-width: 767px; $tablet-width: 768px; +$desktop-min-width: 880px; diff --git a/client/src/components/Playground.vue b/client/src/components/Playground.vue index fb953c0..56d004a 100644 --- a/client/src/components/Playground.vue +++ b/client/src/components/Playground.vue @@ -51,7 +51,7 @@ const showQuote = ref(false) window.setTimeout(() => { showQuote.value = true }, 100) const showSkipButton = computed(() => game.phase === 'select-quote') const badgeMap = computed(() => { - const badgeMap = {} as { [key: string]: number} + const badgeMap = {} as { [key: string]: number } if (game.phase === 'reveal-show-count') { for (const id in round.revelation.votes) { badgeMap[id] = round.revelation.votes[id].length @@ -61,7 +61,7 @@ const badgeMap = computed(() => { }) const disabledMap = computed(() => { - const disabledMap = {} as { [key: string]: boolean} + const disabledMap = {} as { [key: string]: boolean } if (game.phase === 'reveal-source') { for (const id in round.revelation.sources) { disabledMap[id] = !round.revelation.sources[id] @@ -71,7 +71,7 @@ const disabledMap = computed(() => { return disabledMap }) -const showMap = ref({} as { [key: string]: boolean}) +const showMap = ref({} as { [key: string]: boolean }) sources.forEach((source, index) => { window.setTimeout(() => { showMap.value[source.id] = true @@ -80,6 +80,8 @@ sources.forEach((source, index) => {