diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-14 11:04:21 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-14 11:04:21 +0900 |
| commit | d7522757302ff2a9378a86bedfbe3285c07a730a (patch) | |
| tree | e7af11cd948671cd608ec56c138db82789510283 /src/client/components/ui | |
| parent | Revert "fix bug" (diff) | |
| download | sharkey-d7522757302ff2a9378a86bedfbe3285c07a730a.tar.gz sharkey-d7522757302ff2a9378a86bedfbe3285c07a730a.tar.bz2 sharkey-d7522757302ff2a9378a86bedfbe3285c07a730a.zip | |
fix bug
Diffstat (limited to 'src/client/components/ui')
| -rw-r--r-- | src/client/components/ui/modal.vue | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/client/components/ui/modal.vue b/src/client/components/ui/modal.vue index 3b11213426..33fcdb687f 100644 --- a/src/client/components/ui/modal.vue +++ b/src/client/components/ui/modal.vue @@ -1,6 +1,6 @@ <template> <transition :name="$store.state.animation ? popup ? 'modal-popup' : 'modal' : ''" :duration="$store.state.animation ? popup ? 500 : 300 : 0" appear @after-leave="onClosed" @enter="$emit('opening')" @after-enter="childRendered"> - <div v-show="manualShowing != null ? manualShowing : showing" class="mk-modal" v-hotkey.global="keymap" :style="{ pointerEvents: (manualShowing != null ? manualShowing : showing) ? 'auto' : 'none', '--transformOrigin': transformOrigin }"> + <div v-show="manualShowing != null ? manualShowing : showing" class="qzhlnise" :class="{ front }" v-hotkey.global="keymap" :style="{ pointerEvents: (manualShowing != null ? manualShowing : showing) ? 'auto' : 'none', '--transformOrigin': transformOrigin }"> <div class="bg _modalBg" @click="onBgClick" @contextmenu.prevent.stop="() => {}"></div> <div class="content" :class="{ popup, fixed, top: position === 'top' }" @click.self="onBgClick" ref="content"> <slot></slot> @@ -41,6 +41,11 @@ export default defineComponent({ }, position: { required: false + }, + front: { + type: Boolean, + required: false, + default: false, } }, emits: ['opening', 'click', 'esc', 'close', 'closed'], @@ -224,7 +229,7 @@ export default defineComponent({ } } -.mk-modal { +.qzhlnise { > .bg { z-index: 10000; } @@ -269,5 +274,19 @@ export default defineComponent({ position: fixed; } } + + &.front { + > .bg { + z-index: 20000; + } + + > .content:not(.popup) { + z-index: 20000; + } + + > .content.popup { + z-index: 20000; + } + } } </style> |