erp5_document_scanner: unify video, cropper and image layout
Limit the media height. Patch cropperjs to force it rendering when resizing the window.
Showing
... | ... | @@ -15,13 +15,9 @@ div[data-gadget-url$="gadget_document_scanner.html"] .camera-output, |
div[data-gadget-url$="gadget_document_scanner.html"] .canvas { | ||
max-width: 100%; | ||
width: auto; | ||
max-height: 500px; | ||
filter: brightness(1); | ||
text-align: center; | ||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .camera-input { | ||
min-height: 360px; | ||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .page-number { | ||
display: inline; | ||
} | ||
... | ... | @@ -98,9 +94,23 @@ div[data-gadget-url$="gadget_document_scanner.html"] .new-btn { |
width: calc(6em + 1px); | ||
height: calc(6em + 1px); | ||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .img-container { | ||
div[data-gadget-url$="gadget_document_scanner.html"] .review-img-container { | ||
height: 70vh; | ||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .review-img-container img { | ||
max-height: 100%; | ||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .img-container, | ||
div[data-gadget-url$="gadget_document_scanner.html"] .camera-input { | ||
/* Never limit the container height here */ | ||
max-width: 100%; | ||
position: relative; | ||
width: 100%; | ||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .img-container img, | ||
div[data-gadget-url$="gadget_document_scanner.html"] .camera-input img, | ||
div[data-gadget-url$="gadget_document_scanner.html"] .img-container video, | ||
div[data-gadget-url$="gadget_document_scanner.html"] .camera-input video { | ||
height: 70vh; | ||
|
||
} | ||
div[data-gadget-url$="gadget_document_scanner.html"] .btn-thumbnail:before { | ||
color: #000; | ||
... | ... |