fix(style): add prop `overPopover` prop to render Modal over any popover
This commit is contained in:
parent
bddbb813dc
commit
74958dcf34
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Button from '~/components/ui/Button.vue'
|
import Button from '~/components/ui/Button.vue'
|
||||||
|
|
||||||
const { title } = defineProps<{ title:string }>()
|
const { title, overPopover = false } = defineProps<{ title:string, overPopover?:true }>()
|
||||||
const isOpen = defineModel<boolean>({ default:false })
|
const isOpen = defineModel<boolean>({ default:false })
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
|
@ -14,7 +14,7 @@ const isOpen = defineModel<boolean>({ default:false })
|
||||||
<Teleport to="body">
|
<Teleport to="body">
|
||||||
<Transition mode="out-in">
|
<Transition mode="out-in">
|
||||||
<div v-if="isOpen" @click.exact.stop="isOpen = false" class="funkwhale overlay">
|
<div v-if="isOpen" @click.exact.stop="isOpen = false" class="funkwhale overlay">
|
||||||
<div @click.stop class="funkwhale modal" :class="$slots.alert && 'has-alert'" >
|
<div @click.stop class="funkwhale modal" :class="[$slots.alert && 'has-alert', overPopover && 'over-popover']" >
|
||||||
<h2>
|
<h2>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
<Button icon="bi-x-lg" ghost @click="isOpen = false" />
|
<Button icon="bi-x-lg" ghost @click="isOpen = false" />
|
||||||
|
|
|
@ -71,6 +71,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.funkwhale.overlay:has(.over-popover) {
|
||||||
|
// override z-index
|
||||||
|
z-index: 999999;
|
||||||
|
}
|
||||||
|
|
||||||
.funkwhale.overlay {
|
.funkwhale.overlay {
|
||||||
background: rgba(#000, .2);
|
background: rgba(#000, .2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue