Skip to content

Commit 0b0e269

Browse files
committed
frontend: add poster attribute video tag
In the scan-qr-video component, we use a html video tag which has an unappealing placeholder image. Adding a poster attribute changes that placeholder image, we use an empty svg in this case.
1 parent 8166783 commit 0b0e269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontends/web/src/routes/account/send/components/inputs/scan-qr-video.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const ScanQRVideo = ({
4444
<video
4545
className={style.qrVideo}
4646
ref={videoRef}
47+
poster="%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2264%22%20height=%2248%22%3E%3C/svg%3E"
4748
/>
4849
</>
4950
);

0 commit comments

Comments
 (0)