From 55c6b47767f43e42e200859004cfe453f5138eed Mon Sep 17 00:00:00 2001 From: legonzaur Date: Wed, 1 May 2024 14:26:20 +0200 Subject: [PATCH] experimental css changes --- app.vue | 6 ++++++ components/CardPreview.vue | 4 ++-- components/CardSlot.vue | 18 +++++------------ components/GameBoard.vue | 1 + components/PlayerSlot.vue | 40 ++++++++++++++++++++++++++++++++++++++ components/SelfView.vue | 13 ++++++------- 6 files changed, 60 insertions(+), 22 deletions(-) diff --git a/app.vue b/app.vue index 7baa09e..a38bd91 100644 --- a/app.vue +++ b/app.vue @@ -18,3 +18,9 @@ let username = ref('legonzaur') + + \ No newline at end of file diff --git a/components/CardPreview.vue b/components/CardPreview.vue index 92a4566..4a894a0 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -3,7 +3,7 @@ import type { Card } from '~/netcode/Card'; export interface Props { - data?: Card | null + data: Card | null | undefined locked?: boolean } @@ -15,7 +15,7 @@ const buttonsElement = ref(null) const rightClicked = ref(false) function cardClick() { - if (props.data == null) return + if (!props.data) return emit("click") } diff --git a/components/CardSlot.vue b/components/CardSlot.vue index 29ae28d..fbb986b 100644 --- a/components/CardSlot.vue +++ b/components/CardSlot.vue @@ -9,20 +9,19 @@ const props = withDefaults(defineProps(), { stack: () => [], }) -const wrapped = ref(false) +const unwrapped = ref(false) @@ -134,6 +173,7 @@ const discard_unwrapped = ref(false) display: flex; flex-direction: row; align-items: flex-start; + justify-content: center; } .turn_icon img { diff --git a/components/SelfView.vue b/components/SelfView.vue index f304269..724ae91 100644 --- a/components/SelfView.vue +++ b/components/SelfView.vue @@ -61,16 +61,15 @@ const discard_unwrapped = ref(false)
+ - -
discard_markers = {{ props.player.turn.discard_markers }}
@@ -118,7 +117,7 @@ const discard_unwrapped = ref(false) {{ props.player.discard_pile.length }} - + @@ -128,7 +127,7 @@ const discard_unwrapped = ref(false) @click="useEffect(goStore.self!.turn.effects_availables.find(e => (e.effect == CardEffects.SACRIFICE) && e.usable)!, props.player.discard_pile.at(-1))">SACRIFICE -