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:
commit
170372b2bc
8 changed files with 101 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue