mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-01-20 22:10:20 +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 screen
|
||||||
-------------------------------------------------------------- */
|
-------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.capture-body {
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.capture {
|
.capture {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
|
|
|
@ -46,6 +46,10 @@ export default {
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
window.objectFitPolyfill(this.$refs.preview)
|
window.objectFitPolyfill(this.$refs.preview)
|
||||||
|
document.body.classList.add('capture-body')
|
||||||
|
},
|
||||||
|
destroyed: function () {
|
||||||
|
document.body.classList.remove('capture-body')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue