diff --git a/packages/frontend/src/pages/qr.show.vue b/packages/frontend/src/pages/qr.show.vue index 8709084555..ed1585317f 100644 --- a/packages/frontend/src/pages/qr.show.vue +++ b/packages/frontend/src/pages/qr.show.vue @@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ userName($i) }}
- Misskey Logo + Misskey Logo @@ -91,7 +91,7 @@ function share() { }); } -watch([qrCodeEl, avatarHsl, url], () => { +onMounted(() => { const qrCodeInstance = new QRCodeStyling({ width: 512, height: 512, @@ -117,7 +117,7 @@ watch([qrCodeEl, avatarHsl, url], () => { rotation: 1, // radian colorStops: [ { offset: 0, color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 25)`).toRgbString() }, - { offset: 0.5, color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 18)`).toRgbString() }, + { offset: 0.5, color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 20)`).toRgbString() }, { offset: 1, color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 6)`).toRgbString() }, ], }, @@ -131,7 +131,7 @@ watch([qrCodeEl, avatarHsl, url], () => { if (qrCodeEl.value != null) { qrCodeInstance.append(qrCodeEl.value); } -}, { immediate: true }); +}); //#region scroll height function checkScrollHeight() { @@ -195,6 +195,7 @@ const vFlip = { $s1: 16px; $s2: 24px; $s3: 32px; +$avatarSize: 58px; .root { position: relative; @@ -245,8 +246,6 @@ $s3: 32px; } } -$avatarSize: 58px; - .user { display: flex; margin: $s3 auto;