shitty fix

This commit is contained in:
j3d1 2020-01-01 19:52:01 +01:00
parent 0c0b8a79af
commit ac608117d8

View file

@ -2,18 +2,18 @@
<div> <div>
<img <img
v-if="!capturing" v-if="!capturing"
class="img-fluid rounded mx-auto d-block mb-3" class="img-fluid rounded mx-auto d-block mb-3 img-preview"
:src="dataImage || `https://c3lf.de/api/1/thumbs/${model[field]}`" :src="dataImage || `https://c3lf.de/api/1/thumbs/${model[field]}`"
alt="Image not available." alt="Image not available."
/> />
<video <video
v-if="capturing" v-if="capturing"
ref="video" ref="video"
class="img-fluid rounded mx-auto d-block mb-3" class="img-fluid rounded mx-auto d-block mb-3 img-preview"
> >
Video stream not available. Video stream not available.
</video> </video>
<canvas ref="canvas" class="img-fluid d-none"/> <canvas ref="canvas" class="img-fluid d-none img-preview"/>
<div class="row" v-if="capturing && !streaming"> <div class="row" v-if="capturing && !streaming">
<div class="spinner-grow text-danger mx-auto" role="status"> <div class="spinner-grow text-danger mx-auto" role="status">
<span class="sr-only">Loading...</span> <span class="sr-only">Loading...</span>
@ -115,3 +115,9 @@ export default {
} }
}; };
</script> </script>
<style>
.img-preview{
max-height: 30vh;
}
</style>