Browse Source

fix: player min-width and open attachment in carousel

pull/8990/head
DarkPhoenix2704 4 months ago
parent
commit
8c63ad52a0
No known key found for this signature in database
GPG Key ID: 3F76B10622A07849
  1. 10
      packages/nc-gui/components/cell/attachment/Modal.vue
  2. 3
      packages/nc-gui/components/cell/attachment/Preview/Video.vue

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

@ -158,15 +158,9 @@ const handleFileDelete = (i: number) => {
@click.stop="onClick(item)"
/>
<component
:is="FileIcon(item.icon)"
v-else-if="item.icon"
:height="45"
:width="45"
@click.stop="openAttachment(item)"
/>
<component :is="FileIcon(item.icon)" v-else-if="item.icon" :height="45" :width="45" @click.stop="onClick(item)" />
<IcOutlineInsertDriveFile v-else :height="45" :width="45" @click.stop="openAttachment(item)" />
<IcOutlineInsertDriveFile v-else :height="45" :width="45" @click.stop="onClick(item)" />
</div>
<div class="relative px-1 pb-1 items-center flex" :title="item.title">

3
packages/nc-gui/components/cell/attachment/Preview/Video.vue

@ -44,10 +44,9 @@ onBeforeUnmount(() => {
controls
playsinline
:class="{
'!w-128 !h-72': isAudio(title ?? '', mimeType),
[props.class]: props.class,
}"
class="videoplayer w-full"
class="videoplayer !min-w-128 !min-h-72 w-full"
>
<source v-for="(source, id) in props.src" :key="id" :src="source" :type="mimeType" />
</video>

Loading…
Cancel
Save