forked from AkkomaGang/akkoma-fe
lock body scroll when post status modal is open
This commit is contained in:
parent
051e6ea5ca
commit
776f0ef774
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn && !resettingForm"
|
v-if="isLoggedIn && !resettingForm"
|
||||||
v-show="modalActivated"
|
v-show="modalActivated"
|
||||||
|
v-body-scroll-lock="modalActivated"
|
||||||
class="post-form-modal-view modal-view"
|
class="post-form-modal-view modal-view"
|
||||||
@click="closeModal"
|
@click="closeModal"
|
||||||
>
|
>
|
||||||
|
@ -28,6 +29,10 @@
|
||||||
|
|
||||||
.post-form-modal-view {
|
.post-form-modal-view {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
|
||||||
|
body:not(.scroll-locked) & {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form-modal-panel {
|
.post-form-modal-panel {
|
||||||
|
|
Loading…
Reference in a new issue