Browse Source

fix(gui-v2): attachment modal issue in shared form view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3188/head
Pranav C 2 years ago
parent
commit
fb5a0ce688
  1. 2
      packages/nc-gui-v2/components/cell/attachment/Carousel.vue
  2. 2
      packages/nc-gui-v2/components/cell/attachment/Modal.vue

2
packages/nc-gui-v2/components/cell/attachment/Carousel.vue

@ -92,7 +92,7 @@ onClickOutside(carouselRef, () => {
<div v-for="item of imageItems" :key="item.url">
<div
:style="{ backgroundImage: `url('${item.url}')` }"
:style="{ backgroundImage: `url('${item.url || item.data}')` }"
class="min-w-70vw min-h-70vh w-full h-full bg-contain bg-center bg-no-repeat"
/>
</div>

2
packages/nc-gui-v2/components/cell/attachment/Modal.vue

@ -116,7 +116,7 @@ function onClick(item: Record<string, any>) {
>
<div
v-if="isImage(item.title, item.mimetype)"
:style="{ backgroundImage: `url('${item.url}')` }"
:style="{ backgroundImage: `url('${item.url || item.data}')` }"
class="w-full h-full bg-contain bg-center bg-no-repeat"
@click.stop="onClick(item)"
/>

Loading…
Cancel
Save