diff --git a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue index 36038bfee..fb79bd528 100644 --- a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue +++ b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue @@ -22,17 +22,25 @@ const taglines: Taglines[] = [ ]; const index: Ref = ref(0); +const isPaused: Ref = ref(false); onMounted(() => { index.value = Math.floor(Math.random() * taglines.length); setInterval(() => { + if (isPaused.value) { + return; + } index.value = (index.value + 1) % taglines.length; }, 5_000); });