summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-05-21 17:27:47 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-05-21 17:27:47 +0900
commit70d02cf1be55130f9e3b979633cfb568165a9c29 (patch)
tree28dfc21715c38c514aab44c671ce4a9cf4749e0b /src/client
parentMerge branch 'develop' (diff)
parent12.81.1 (diff)
downloadmisskey-70d02cf1be55130f9e3b979633cfb568165a9c29.tar.gz
misskey-70d02cf1be55130f9e3b979633cfb568165a9c29.tar.bz2
misskey-70d02cf1be55130f9e3b979633cfb568165a9c29.zip
Merge branch 'develop'
Diffstat (limited to 'src/client')
-rw-r--r--src/client/components/emoji-picker-dialog.vue2
-rw-r--r--src/client/components/ui/modal.vue29
2 files changed, 25 insertions, 6 deletions
diff --git a/src/client/components/emoji-picker-dialog.vue b/src/client/components/emoji-picker-dialog.vue
index c4b12e2f61..9400819a1f 100644
--- a/src/client/components/emoji-picker-dialog.vue
+++ b/src/client/components/emoji-picker-dialog.vue
@@ -1,5 +1,5 @@
<template>
-<MkModal ref="modal" :manual-showing="manualShowing" :src="src" @click="$refs.modal.close()" @opening="opening" @close="$emit('close')" @closed="$emit('closed')">
+<MkModal ref="modal" :manual-showing="manualShowing" :src="src" :front="true" @click="$refs.modal.close()" @opening="opening" @close="$emit('close')" @closed="$emit('closed')">
<MkEmojiPicker :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" @chosen="chosen" ref="picker"/>
</MkModal>
</template>
diff --git a/src/client/components/ui/modal.vue b/src/client/components/ui/modal.vue
index 2a4eec4034..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,14 +229,14 @@ export default defineComponent({
}
}
-.mk-modal {
+.qzhlnise {
> .bg {
- z-index: 20000;
+ z-index: 10000;
}
> .content:not(.popup) {
position: fixed;
- z-index: 20000;
+ z-index: 10000;
top: 0;
bottom: 0;
left: 0;
@@ -263,11 +268,25 @@ export default defineComponent({
> .content.popup {
position: absolute;
- z-index: 20000;
+ z-index: 10000;
&.fixed {
position: fixed;
}
}
+
+ &.front {
+ > .bg {
+ z-index: 20000;
+ }
+
+ > .content:not(.popup) {
+ z-index: 20000;
+ }
+
+ > .content.popup {
+ z-index: 20000;
+ }
+ }
}
</style>