summaryrefslogtreecommitdiff
path: root/packages/client/src/components/ui/modal.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-12-18 12:12:47 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-12-18 12:12:47 +0900
commitba1e14443c2a4666937094f491675df0dc93e7a1 (patch)
tree65bb99cceed3f2d69752ee2a50d926b8aa0cd79c /packages/client/src/components/ui/modal.vue
parent12.100.1 (diff)
downloadmisskey-ba1e14443c2a4666937094f491675df0dc93e7a1.tar.gz
misskey-ba1e14443c2a4666937094f491675df0dc93e7a1.tar.bz2
misskey-ba1e14443c2a4666937094f491675df0dc93e7a1.zip
fix(client): fix zindex issue
Fix #8064 Fix #8063
Diffstat (limited to 'packages/client/src/components/ui/modal.vue')
-rw-r--r--packages/client/src/components/ui/modal.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/components/ui/modal.vue b/packages/client/src/components/ui/modal.vue
index 81394be63f..b09d04c450 100644
--- a/packages/client/src/components/ui/modal.vue
+++ b/packages/client/src/components/ui/modal.vue
@@ -49,10 +49,10 @@ export default defineComponent({
type: String,
default: 'auto',
},
- front: {
- type: Boolean,
+ zPriority: {
+ type: String as PropType<'low' | 'middle' | 'high'>,
required: false,
- default: false,
+ default: 'low',
},
noOverlap: {
type: Boolean,
@@ -74,7 +74,7 @@ export default defineComponent({
const transformOrigin = ref('center');
const showing = ref(true);
const content = ref<HTMLElement>();
- const zIndex = os.claimZIndex(props.front);
+ const zIndex = os.claimZIndex(props.zPriority);
const type = computed(() => {
if (props.preferType === 'auto') {
if (isTouchUsing && window.innerWidth < 500 && window.innerHeight < 1000) {