mirror of
https://github.com/KevinMidboe/leifsopplevelser.git
synced 2025-12-08 20:38:46 +00:00
Better scroll that also works with mobile?
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<Popover class="popup" v-if="popoverShow" :image="popoverImage"></Popover>
|
||||
<router-link to="edit">Edit Page</router-link>
|
||||
|
||||
<event-page></event-page>
|
||||
<event-page style="height: 100%; overflow: auto;"></event-page>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="popover" @click="close" v-touch:swipe.left="backwards" v-touch:swipe.right="forwards">
|
||||
<div class="popover-content">
|
||||
<div class="image-container">
|
||||
<img :src="image.url" />
|
||||
</div>
|
||||
|
||||
<div class="other-elements"></div>
|
||||
</div>
|
||||
<div style="position: fixed; width: 100%; bottom: 2rem">
|
||||
<div style="display: block; width: max-content; margin: 0 auto;">
|
||||
@@ -55,15 +57,23 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.popover {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
background-color: rgba(0,0,0,0.7);
|
||||
|
||||
&-content {
|
||||
height: 100%;
|
||||
// margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
// flex-direction: column;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
max-height: 90vh;
|
||||
@@ -74,6 +84,11 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.other-elements {
|
||||
// height: 2000px;
|
||||
background-color: NavajoWhite;
|
||||
}
|
||||
|
||||
.hover-options {
|
||||
position: relative;
|
||||
background-color: rgba(0,0,0,0.4);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// @import 'bootstrap-vue/dist/bootstrap-vue.css';
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
line-height: 1;
|
||||
|
||||
Reference in New Issue
Block a user