diff --git a/app/src/views/private/components/file-preview/file-preview.vue b/app/src/views/private/components/file-preview/file-preview.vue index 4accf96d94..22b42b521b 100644 --- a/app/src/views/private/components/file-preview/file-preview.vue +++ b/app/src/views/private/components/file-preview/file-preview.vue @@ -65,12 +65,20 @@ const authenticatedSrc = computed(() => addTokenToURL(props.src)); position: relative; max-width: calc((var(--form-column-max-width) * 2) + var(--form-horizontal-gap)); + img, + video { + width: auto; + height: auto; + } + + audio { + width: 100%; + } + img, video, audio { - width: auto; max-width: 100%; - height: auto; max-height: v-bind(maxHeight); object-fit: contain; border-radius: var(--border-radius);