mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Don't exceed the screen width with camera window
This commit is contained in:
parent
f633367644
commit
1dcee60358
|
|
@ -259,6 +259,14 @@ input::-webkit-inner-spin-button {
|
|||
color: inherit;
|
||||
}
|
||||
|
||||
/* Barcodescanner Quagga */
|
||||
#barcodescanner-livestream video {
|
||||
width: 100%;
|
||||
}
|
||||
#barcodescanner-livestream canvas {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Third party component customizations - Bootstrap */
|
||||
|
||||
/* Hide the form validation feedback icons introduced in Bootstrap 4.2.0 - a colored border is enough */
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
|
|||
type: "LiveStream",
|
||||
target: document.querySelector("#barcodescanner-livestream"),
|
||||
constraints: {
|
||||
width: 436,
|
||||
height: 327,
|
||||
// width: 436,
|
||||
// height: 327,
|
||||
facingMode: "environment"
|
||||
}
|
||||
},
|
||||
|
|
@ -181,7 +181,7 @@ $(document).on("click", "#barcodescanner-start-button", function(e)
|
|||
callback: function()
|
||||
{
|
||||
Grocy.Components.BarcodeScanner.TorchState = !Grocy.Components.BarcodeScanner.TorchState;
|
||||
|
||||
|
||||
Quagga.CameraAccess.getActiveTrack().applyConstraints({
|
||||
advanced: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user