Fixed qr-scanner (needs to be deployed (https))
This commit is contained in:
@@ -41,8 +41,9 @@
|
||||
</button>
|
||||
</div>
|
||||
<!-- DAS VORSCHAUFENSTER FÜR DIE KAMERA IN DEINER _search_bar.html.erb -->
|
||||
<div data-scanner-target="preview" class="w-full aspect-square rounded-xl overflow-hidden border border-gray-200 bg-gray-50 flex items-center justify-center">
|
||||
<!-- Das <video>-Tag wird von Stimulus hier automatisch injiziert -->
|
||||
<!-- KORREKTUR: Das Video-Tag steht jetzt fest im HTML und dient direkt als Target -->
|
||||
<div class="w-full aspect-square rounded-xl overflow-hidden border border-gray-200 bg-black flex items-center justify-center">
|
||||
<video data-scanner-target="preview" class="w-full h-full object-cover rounded-xl" playsinline muted></video>
|
||||
</div>
|
||||
<p class="text-xs text-gray-500 text-center">Halte den QR-Code des Geräts ruhig in den Scan-Rahmen.</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user