fix: popover action bar behind modal (#5937)
* fix: popover action bar behind modal * fix: only below modal for backups
This commit is contained in:
@@ -6,13 +6,14 @@ import { useModalStack } from '../../composables/modal-stack'
|
||||
const props = defineProps<{
|
||||
shown: boolean
|
||||
ariaLabel?: string
|
||||
belowModal?: boolean
|
||||
}>()
|
||||
|
||||
const toolbarEl = ref<HTMLElement | null>(null)
|
||||
const compact = ref(false)
|
||||
|
||||
const { stackCount } = useModalStack()
|
||||
const zIndex = computed(() => 100 + stackCount.value * 10 + 8)
|
||||
const zIndex = computed(() => 100 + stackCount.value * 10 + 8 + (!props.belowModal ? 1 : 0))
|
||||
|
||||
function checkCompact() {
|
||||
const el = toolbarEl.value
|
||||
|
||||
@@ -160,6 +160,7 @@
|
||||
</div>
|
||||
|
||||
<FloatingActionBar
|
||||
below-modal
|
||||
:shown="selectedIds.size > 0 || isBulkOperating"
|
||||
:aria-label="
|
||||
formatMessage(messages.bulkBarAriaLabel, {
|
||||
|
||||
Reference in New Issue
Block a user