diff --git a/apps/stage-tamagotchi/src/pages/index.vue b/apps/stage-tamagotchi/src/pages/index.vue index 60b4ff31a..b973107c3 100644 --- a/apps/stage-tamagotchi/src/pages/index.vue +++ b/apps/stage-tamagotchi/src/pages/index.vue @@ -43,7 +43,7 @@ onUnmounted(async () => { await invoke('stop_monitor') }) -const unlisten: (() => void)[] = [] +const unListenFuncs: (() => void)[] = [] function openSettings() { invoke('open_settings_window') @@ -94,7 +94,7 @@ function onTauriPositionCursorAndWindowFrameEvent(event: { payload: [Point, Wind onMounted(async () => { // Listen for click-through state changes - unlisten.push(await listen('tauri-app:window-click-through:position-cursor-and-window-frame', onTauriPositionCursorAndWindowFrameEvent)) + unListenFuncs.push(await listen('tauri-app:window-click-through:position-cursor-and-window-frame', onTauriPositionCursorAndWindowFrameEvent)) if (connected.value) return @@ -110,19 +110,19 @@ onMounted(async () => { }) onUnmounted(() => { - unlisten.forEach(fn => fn?.()) - unlisten.length = 0 + unListenFuncs.forEach(fn => fn?.()) + unListenFuncs.length = 0 }) if (import.meta.hot) { // For better DX import.meta.hot.on('vite:beforeUpdate', () => { - unlisten.forEach(fn => fn?.()) - unlisten.length = 0 + unListenFuncs.forEach(fn => fn?.()) + unListenFuncs.length = 0 invoke('stop_monitor') }) import.meta.hot.on('vite:afterUpdate', async () => { - if (unlisten.length === 0) { - unlisten.push(await listen('tauri-app:window-click-through:position-cursor-and-window-frame', onTauriPositionCursorAndWindowFrameEvent)) + if (unListenFuncs.length === 0) { + unListenFuncs.push(await listen('tauri-app:window-click-through:position-cursor-and-window-frame', onTauriPositionCursorAndWindowFrameEvent)) } invoke('start_monitor') }) @@ -134,21 +134,14 @@ if (import.meta.hot) { // For better DX :class="[modeIndicatorClass, { 'op-0': shouldHideView, }]" - relative max-h="[100vh]" max-w="[100vw]" - p="2" flex="~ col" - z-2 - h-full - overflow-hidden + relative z-2 h-full overflow-hidden rounded-xl transition="opacity duration-500 ease-in-out" >
-
-
+
DRAG HERE TO MOVE @@ -204,18 +197,18 @@ if (import.meta.hot) { // For better DX
-
+