Browse Source

fix: contain image

pull/6575/head
DarkPhoenix2704 11 months ago
parent
commit
2a52964ee2
  1. 2
      packages/nc-gui/components/cell/attachment/Image.vue
  2. 2
      packages/nc-gui/components/cell/attachment/Modal.vue

2
packages/nc-gui/components/cell/attachment/Image.vue

@ -16,7 +16,7 @@ const onError = () => index.value++
<template>
<LazyNuxtImg
v-if="index < props.srcs.length"
class="m-auto"
class="m-auto object-cover"
:src="props.srcs[index]"
:alt="props?.alt || ''"
placeholder

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

@ -172,7 +172,7 @@ const handleFileDelete = (i: number) => {
<LazyCellAttachmentImage
v-if="isImage(item.title, item.mimetype)"
:srcs="getPossibleAttachmentSrc(item)"
class="max-w-full max-h-full m-auto justify-center"
class="object-cover h-64 m-auto justify-center"
@click.stop="onClick(item)"
/>

Loading…
Cancel
Save