mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 00:10:14 +00:00
🎨
This commit is contained in:
parent
7797e8b8b6
commit
5f611a9d9d
2 changed files with 3 additions and 2 deletions
|
@ -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 a new issue