diff --git a/components/CardPreview.vue b/components/CardPreview.vue index 3455620..d748724 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -11,7 +11,8 @@ export interface Props { const props = withDefaults(defineProps(), { wrapped: () => false, - tilted: () => true + tilted: () => true, + locked: () => true }) @@ -21,6 +22,8 @@ const settingsStore = useSettingsStore() const childCount = ref(0) +const card = ref() + function cardClick() { if (!props.card_id) return emit("click") @@ -41,10 +44,15 @@ watch( props.wrapped ? rotation.value = (Math.random() * 4) - 2 : rotation.value = Math.random() > .5 ? 2 : -2 }, { immediate: true }) + + +onMounted(() => { + card.value?.style.setProperty("--random-seed", -Math.random() * 10 + 's') +})