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<{
|
const props = defineProps<{
|
||||||
shown: boolean
|
shown: boolean
|
||||||
ariaLabel?: string
|
ariaLabel?: string
|
||||||
|
belowModal?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const toolbarEl = ref<HTMLElement | null>(null)
|
const toolbarEl = ref<HTMLElement | null>(null)
|
||||||
const compact = ref(false)
|
const compact = ref(false)
|
||||||
|
|
||||||
const { stackCount } = useModalStack()
|
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() {
|
function checkCompact() {
|
||||||
const el = toolbarEl.value
|
const el = toolbarEl.value
|
||||||
|
|||||||
@@ -160,6 +160,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<FloatingActionBar
|
<FloatingActionBar
|
||||||
|
below-modal
|
||||||
:shown="selectedIds.size > 0 || isBulkOperating"
|
:shown="selectedIds.size > 0 || isBulkOperating"
|
||||||
:aria-label="
|
:aria-label="
|
||||||
formatMessage(messages.bulkBarAriaLabel, {
|
formatMessage(messages.bulkBarAriaLabel, {
|
||||||
|
|||||||
Reference in New Issue
Block a user