shitty fix
This commit is contained in:
parent
0c0b8a79af
commit
ac608117d8
1 changed files with 10 additions and 4 deletions
|
@ -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>
|
Loading…
Reference in a new issue