fix #62
This commit is contained in:
parent
84407fa92d
commit
b391075efd
1 changed files with 18 additions and 4 deletions
|
|
@ -1,11 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<figure>
|
<figure>
|
||||||
<div @mousedown="enableDragToRotate" class="drag-zone" :class="{ 'grabbing': isDragToRotateEnabled }"></div>
|
<div
|
||||||
|
@mousedown="enableDragToRotate"
|
||||||
|
class="drag-zone"
|
||||||
|
:class="{ grabbing: isDragToRotateEnabled }"
|
||||||
|
></div>
|
||||||
<img :src="currentFile.url" alt="" width="500" height="500" />
|
<img :src="currentFile.url" alt="" width="500" height="500" />
|
||||||
</figure>
|
</figure>
|
||||||
<div hidden id="helper" class="flex flex-col | bg-black-50">
|
<div
|
||||||
<p class="rounded-lg | text-white bg-grey-800 | p-16">Vous pouvez visualiser l’échantillon sous différents angles en cliquant et en déplaçant la souris de gauche à droite ou de bas en haut.</p>
|
id="helper"
|
||||||
<button class="btn">J’ai compris</button>
|
class="flex flex-col | bg-black-50"
|
||||||
|
:hidden="isHelperHidden ? true : undefined"
|
||||||
|
>
|
||||||
|
<p class="rounded-lg | text-white bg-grey-800 | p-16">
|
||||||
|
Vous pouvez visualiser l’échantillon sous différents angles en cliquant et
|
||||||
|
en déplaçant la souris de gauche à droite ou de bas en haut.
|
||||||
|
</p>
|
||||||
|
<button class="btn" @click="isHelperHidden = true">J’ai compris</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -21,6 +32,9 @@ const { activeTrack } = defineProps({
|
||||||
|
|
||||||
const virtualSampleStore = useVirtualSampleStore();
|
const virtualSampleStore = useVirtualSampleStore();
|
||||||
|
|
||||||
|
const isHelperHidden = ref(localStorage.getItem("isHelperHidden"));
|
||||||
|
localStorage.setItem("isHelperHidden", true);
|
||||||
|
|
||||||
const yMax = computed(() => {
|
const yMax = computed(() => {
|
||||||
return parseInt(
|
return parseInt(
|
||||||
activeTrack.files[activeTrack.files.length - 1].name.charAt(0)
|
activeTrack.files[activeTrack.files.length - 1].name.charAt(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue