diff options
| author | taehoon <th.dev91@gmail.com> | 2019-10-17 16:00:19 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-10-17 16:00:19 -0400 |
| commit | 8db1fa506c95bf7bed1cf2fd186bb065797912cd (patch) | |
| tree | bf4f17a544f2a7fb943afbc0946d49ca94415eec /src/components | |
| parent | 776f0ef77491ac06de4a0035d2c4d387d9564948 (diff) | |
lock body scroll when user reporting modal is open
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/user_reporting_modal/user_reporting_modal.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/user_reporting_modal/user_reporting_modal.vue b/src/components/user_reporting_modal/user_reporting_modal.vue index c79a3707..ecbc1369 100644 --- a/src/components/user_reporting_modal/user_reporting_modal.vue +++ b/src/components/user_reporting_modal/user_reporting_modal.vue @@ -1,7 +1,8 @@ <template> <div v-if="isOpen" - class="modal-view" + v-body-scroll-lock="isOpen" + class="modal-view user-reporting-modal-view" @click="closeModal" > <div @@ -77,6 +78,12 @@ <style lang="scss"> @import '../../_variables.scss'; +.user-reporting-modal-view { + body:not(.scroll-locked) & { + display: none; + } +} + .user-reporting-panel { width: 90vw; max-width: 700px; |
