Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix preview size on mobile #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/camerainput.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class CameraInput {

initViewport() {
$(`<div id="camera-input-viewport" class="modal" role="dialog">
<div class="modal-dialog" role="dialog">
<div class="modal-body"><video autoplay muted preload="auto"></video></div>
<div class="modal-dialog d-flex justify-content-center" role="dialog">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="modal-body"><video autoplay muted preload="auto" style="max-width: 90vw"></video></div>
</div>
</div>`).appendTo('main');
$('#camera-input-viewport').modal({
Expand Down