mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-08 10:11:52 +00:00
style(capture): Test to remove scroll for landscape mobiles
This commit is contained in:
parent
889494f569
commit
8c945d36bb
2 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,13 @@
|
|||
/* Capture screen
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.capture-body {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
left: 0;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.capture {
|
||||
flex-direction: row;
|
||||
margin-top: auto;
|
||||
|
|
|
@ -46,6 +46,10 @@ export default {
|
|||
},
|
||||
mounted: function () {
|
||||
window.objectFitPolyfill(this.$refs.preview)
|
||||
document.body.classList.add('capture-body')
|
||||
},
|
||||
destroyed: function () {
|
||||
document.body.classList.remove('capture-body')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue