mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-25 15:46:39 +09:00
🎨
This commit is contained in:
parent
7797e8b8b6
commit
5f611a9d9d
@ -19,7 +19,7 @@ const emit = defineEmits<{
|
||||
}>();
|
||||
|
||||
let up = $ref(false);
|
||||
const zIndex = os.claimZIndex('high');
|
||||
const zIndex = os.claimZIndex('veryLow');
|
||||
|
||||
onMounted(() => {
|
||||
window.setTimeout(() => {
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user