From 1591f315e12aff78c9e19124a9bc9f75568f2cc1 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Mon, 17 Nov 2025 01:22:13 +0100 Subject: [PATCH] fix: reset store + animate intro on mount, and fix wrong opacity/positions --- app/components/Contact/BottomScreen/Background.vue | 2 -- app/components/Contact/TopScreen/TopScreen.vue | 7 +++++++ app/components/Home/BottomScreen/Buttons/Buttons.vue | 3 ++- app/components/Home/TopScreen/Calendar.vue | 8 ++++++-- app/components/Home/TopScreen/Clock.vue | 8 ++++++-- app/components/Home/TopScreen/StatusBar.vue | 7 ++----- app/components/Home/TopScreen/TopScreen.vue | 7 +++++++ app/stores/contact.ts | 2 +- app/stores/home.ts | 6 +++--- 9 files changed, 34 insertions(+), 16 deletions(-) diff --git a/app/components/Contact/BottomScreen/Background.vue b/app/components/Contact/BottomScreen/Background.vue index e6266c5..cfa8d2c 100644 --- a/app/components/Contact/BottomScreen/Background.vue +++ b/app/components/Contact/BottomScreen/Background.vue @@ -4,8 +4,6 @@ const store = useContactStore(); const homeBackgroundImage = useTemplateRef("homeBackgroundImage"); const contactBackgroundImage = useTemplateRef("contactBackgroundImage"); -callOnce("contactIntro", store.animateIntro); - useRender((ctx) => { if (!homeBackgroundImage.value || !contactBackgroundImage.value) return; diff --git a/app/components/Contact/TopScreen/TopScreen.vue b/app/components/Contact/TopScreen/TopScreen.vue index f6b36e5..2dae452 100644 --- a/app/components/Contact/TopScreen/TopScreen.vue +++ b/app/components/Contact/TopScreen/TopScreen.vue @@ -2,6 +2,13 @@ import Background from "./Background.vue"; import LeftBar from "./LeftBar.vue"; import Title from "./Title.vue"; + +const store = useContactStore(); + +onMounted(() => { + store.$reset(); + store.animateIntro(); +});