feat(calendar-lab): render content only after zoom settle

This commit is contained in:
Ruslan Bakiev
2026-02-23 17:47:58 +07:00
parent 6d5402dcc1
commit 67a186e916
5 changed files with 204 additions and 106 deletions

View File

@@ -3,6 +3,7 @@ defineProps<{
isActive: boolean;
isLoading: boolean;
isLoaded: boolean;
showContent: boolean;
pulseScale: number;
}>();
</script>
@@ -18,22 +19,25 @@ defineProps<{
<p class="calendar-lab-subtitle">Timeline events</p>
</header>
<p v-if="isLoading" class="calendar-lab-loading">Loading GraphQL day payload</p>
<p v-else-if="isLoaded" class="calendar-lab-meta">Data ready</p>
<template v-if="showContent">
<p v-if="isLoading" class="calendar-lab-loading">Loading GraphQL day payload</p>
<p v-else-if="isLoaded" class="calendar-lab-meta">Data ready</p>
<div class="calendar-lab-timeline">
<article class="calendar-lab-event">
<span>09:30</span>
<p>Call with client</p>
</article>
<article class="calendar-lab-event">
<span>13:00</span>
<p>Prepare follow-up summary</p>
</article>
<article class="calendar-lab-event">
<span>16:45</span>
<p>Send proposal update</p>
</article>
</div>
<div class="calendar-lab-timeline">
<article class="calendar-lab-event">
<span>09:30</span>
<p>Call with client</p>
</article>
<article class="calendar-lab-event">
<span>13:00</span>
<p>Prepare follow-up summary</p>
</article>
<article class="calendar-lab-event">
<span>16:45</span>
<p>Send proposal update</p>
</article>
</div>
</template>
<p v-else class="calendar-lab-hint">Zoom stopped. Day content will render here.</p>
</section>
</template>