fix(machine): rotate pairing camera preview 90° CCW for the Sintra mount
The Sintra's camera is physically mounted rotated, so the wizard's viewfinder showed a sideways image — hard to aim at the spire-seed QR. Rotate the preview 90° CCW (-rotate-90). Preview-only: qr-source decodes the raw frame (CSS transforms don't touch canvas drawImage) and QR decoding is rotation-invariant, so scanning is unaffected. The viewfinder is a square, overflow-hidden container, so the rotated square stays in the box. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
06f73b2d76
commit
7bc718f9e3
1 changed files with 11 additions and 1 deletions
|
|
@ -157,7 +157,17 @@ onUnmounted(teardown)
|
||||||
class="relative overflow-hidden rounded-2xl border-4 border-primary/40 bg-black"
|
class="relative overflow-hidden rounded-2xl border-4 border-primary/40 bg-black"
|
||||||
style="width: min(80vw, 28rem); aspect-ratio: 1 / 1"
|
style="width: min(80vw, 28rem); aspect-ratio: 1 / 1"
|
||||||
>
|
>
|
||||||
<video ref="videoEl" class="h-full w-full object-cover" muted autoplay playsinline></video>
|
<!-- The Sintra's camera is mounted rotated, so rotate the preview 90° CCW
|
||||||
|
for an upright image. Preview-only: qr-source decodes the raw (un-
|
||||||
|
rotated) frame and QR decoding is rotation-invariant. The container is
|
||||||
|
square + overflow-hidden, so the rotated square stays in the box. -->
|
||||||
|
<video
|
||||||
|
ref="videoEl"
|
||||||
|
class="h-full w-full -rotate-90 object-cover"
|
||||||
|
muted
|
||||||
|
autoplay
|
||||||
|
playsinline
|
||||||
|
></video>
|
||||||
<!-- Reticle -->
|
<!-- Reticle -->
|
||||||
<div class="pointer-events-none absolute inset-6 rounded-xl border-2 border-white/70"></div>
|
<div class="pointer-events-none absolute inset-6 rounded-xl border-2 border-white/70"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue