Browse Source

fix: z-index increase when in expanded form

pull/8990/head
DarkPhoenix2704 4 months ago
parent
commit
ca0b473df1
No known key found for this signature in database
GPG Key ID: 3F76B10622A07849
  1. 4
      packages/nc-gui/components/cell/attachment/Carousel.vue

4
packages/nc-gui/components/cell/attachment/Carousel.vue

@ -5,6 +5,8 @@ import { isOffice } from '~/utils/fileUtils'
const { selectedFile, visibleItems, downloadAttachment, removeFile, renameFile, isPublic, isReadonly } = useAttachmentCell()!
const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))
const { isSharedForm } = useSmartsheetStoreOrThrow()
const { isUIAllowed } = useRoles()
@ -83,7 +85,7 @@ watchOnce(emblaMainApi, async (emblaMainApi) => {
</script>
<template>
<GeneralOverlay v-model="selectedFile" transition :z-index="50" class="bg-black bg-opacity-90">
<GeneralOverlay v-model="selectedFile" transition :z-index="isExpandedFormOpen ? 1000 : 50" class="bg-black bg-opacity-90">
<div
v-if="selectedFile"
ref="container"

Loading…
Cancel
Save