Merge branch '616' into 'develop'

Lock body scroll when lightbox is open

Closes #616

See merge request pleroma/pleroma-fe!886
This commit is contained in:
Shpuld Shpludson 2019-09-25 07:16:23 +00:00
commit 170372b2bc
8 changed files with 101 additions and 15 deletions

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;