diff --git a/packages/frontend/src/components/MkPlusOneEffect.vue b/packages/frontend/src/components/MkPlusOneEffect.vue index a0bb22db92..5c85d2b3e5 100644 --- a/packages/frontend/src/components/MkPlusOneEffect.vue +++ b/packages/frontend/src/components/MkPlusOneEffect.vue @@ -19,7 +19,7 @@ const emit = defineEmits<{ }>(); let up = $ref(false); -const zIndex = os.claimZIndex('high'); +const zIndex = os.claimZIndex('veryLow'); onMounted(() => { window.setTimeout(() => { diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index 7e57dcb4af..a4c34104c6 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -153,11 +153,12 @@ export const popups = ref([]) as Ref<{ }[]>; const zIndexes = { + veryLow: 500000, low: 1000000, middle: 2000000, high: 3000000, }; -export function claimZIndex(priority: 'low' | 'middle' | 'high' = 'low'): number { +export function claimZIndex(priority: keyof typeof zIndexes = 'low'): number { zIndexes[priority] += 100; return zIndexes[priority]; }