-
+
+
+
+
\ No newline at end of file
+
+#__nuxt {
+ height: 100%;
+ user-select: none;
+}
+
+#game_status {
+ position: fixed;
+ z-index: 1;
+ top: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ background-color: rgba(255, 255, 255, .75);
+}
+
diff --git a/components/CardPreview.vue b/components/CardPreview.vue
index 866cf39..a9be10b 100644
--- a/components/CardPreview.vue
+++ b/components/CardPreview.vue
@@ -15,20 +15,13 @@ const props = withDefaults(defineProps
(), {
const emit = defineEmits(["click"])
-const buttonsElement = ref(null)
-const rightClicked = ref(false)
+const childCount = ref(0)
function cardClick() {
if (!props.data) return
emit("click")
}
-function contextmenu(e: MouseEvent) {
- if (buttonsElement.value?.childElementCount === 0) { return }
- buttonsElement.value?.setAttribute("style", `top:${e.clientY + 10}px;left:${e.clientX + 10}px`)
- rightClicked.value = true
-}
-
const rotation = ref(0)
// onBeforeUpdate(() => {
@@ -45,40 +38,45 @@ watch(
-
-
![]()
-
-
![]()
-
-
-