diff --git a/package.json b/package.json index 3aa704aa69..d22fc97245 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.118.1-calc.10", + "version": "12.118.1-calc.10.1", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index 93bee149f7..2fa83c6e92 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -25,7 +25,7 @@ - +
{ let pageMetadata = $ref>(); const widgetsEl = $ref(); +const postButton = $ref(); const widgetsShowing = $ref(false); provide('router', mainRouter); @@ -134,17 +135,15 @@ onMounted(() => { window.addEventListener('resize', () => { if (window.innerWidth >= DESKTOP_THRESHOLD) isDesktop.value = true; let scrollPos = 0; - const postButton = document.getElementById('postButton'); function checkPosition() { let windowY = window.scrollY; - if (postButton != null) { - if (windowY < scrollPos) { - postButton.style.transform = 'scale(1)'; - } else { - postButton.style.transform = 'scale(0)'; - } - } + postButton.style.transform = `scale(${windowY < scrollPos ? '1' : '0'})`; + // if (windowY < scrollPos) { + // postButton.style.transform = 'scale(1)'; + // } else { + // postButton.style.transform = 'scale(0)'; + // } scrollPos = windowY; }