From cacb9083b92f1c1649ca068092d187264bd245bd Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 25 Aug 2025 20:27:18 +0900 Subject: [PATCH] fix --- packages/frontend/src/pages/qr.show.vue | 34 ++++++++++++++----------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/packages/frontend/src/pages/qr.show.vue b/packages/frontend/src/pages/qr.show.vue index ed1585317f..6392135a1f 100644 --- a/packages/frontend/src/pages/qr.show.vue +++ b/packages/frontend/src/pages/qr.show.vue @@ -47,7 +47,7 @@ import { extractAvgColorFromBlurhash } from '@@/js/extract-avg-color-from-blurha import tinycolor from 'tinycolor2'; import QRCodeStyling from 'qr-code-styling'; import type { Directive } from 'vue'; -import { computed, ref, watch, onMounted, useCssModule, onUnmounted } from 'vue'; +import { computed, ref, watch, onMounted, onUnmounted } from 'vue'; import { host } from '@@/js/config.js'; import { instance } from '@/instance.js'; import { ensureSignin } from '@/i.js'; @@ -58,8 +58,6 @@ import { getStaticImageUrl } from '@/utility/media-proxy.js'; import { i18n } from '@/i18n.js'; import { getScrollContainer } from '@@/js/scroll'; -const $style = useCssModule(); - const $i = ensureSignin(); const container = ref(null); @@ -166,7 +164,7 @@ function handleOrientationChange(event: DeviceOrientationEvent) { watch(flip, (newState) => { flipEls.forEach(el => { - el.classList.toggle($style.fliped, newState); + el.classList.toggle('_qrShowFlipFliped', newState); }); }); @@ -181,10 +179,10 @@ onUnmounted(() => { const vFlip = { mounted(el: Element) { flipEls.add(el); - el.classList.add($style.flip); + el.classList.add('_qrShowFlip'); }, unmounted(el: Element) { - el.classList.remove($style.flip); + el.classList.remove('_qrShowFlip'); flipEls.delete(el); } } as Directive; @@ -220,15 +218,6 @@ $avatarSize: 58px; margin: 0 auto; } -.flip { - transition: scale rotate 0.3s ease-in; -} - -.fliped { - rotate: x 1; - scale: y -1; -} - .qrOuter { display: flex; width: 100%; @@ -300,3 +289,18 @@ $avatarSize: 58px; margin: $s3 auto 0; } + +