Browse Source

fix: avoid attachment overflow and showing scrollbar

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5952/head
Pranav C 1 year ago
parent
commit
2012b1c3ca
  1. 6
      packages/nc-gui/components/cell/attachment/index.vue

6
packages/nc-gui/components/cell/attachment/index.vue

@ -192,7 +192,11 @@ useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e) => {
</template>
<div v-if="isImage(item.title, item.mimetype ?? item.type)">
<div class="nc-attachment flex items-center justify-center" @click.stop="selectedImage = item">
<LazyCellAttachmentImage :alt="item.title || `#${i}`" :srcs="getPossibleAttachmentSrc(item)" />
<LazyCellAttachmentImage
class="max-h-full max-w-full"
:alt="item.title || `#${i}`"
:srcs="getPossibleAttachmentSrc(item)"
/>
</div>
</div>
<div v-else class="nc-attachment flex items-center justify-center" @click="openAttachment(item)">

Loading…
Cancel
Save