1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 04:45:48 +01:00

lock body scroll

This commit is contained in:
taehoon 2019-07-19 12:36:07 -04:00
parent 8b321f6f1f
commit ad504768fe
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
:style="bgAppStyle"
>
<div
id="app_bg_wrapper"
class="app-bg-wrapper"
:style="bgStyle"
/>

View File

@ -1,6 +1,7 @@
<template>
<div
v-if="showing"
v-body-scroll-lock="showing"
class="modal-view media-modal-view"
@click.prevent="hide"
>
@ -43,6 +44,10 @@
.media-modal-view {
z-index: 1001;
body:not(.scroll-locked) & {
display: none;
}
&:hover {
.modal-view-button-arrow {
opacity: 0.75;