janky fix to ensure consistent sizing of videos
This commit is contained in:
parent
08f82f5845
commit
dc3191b187
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@
|
||||||
<img loading="lazy" decoding="async" width="{ attachment.width }" height="{ attachment.height }" class="attachment media" alt="Attachment" src="{ attachmentUrl(attachment.file) }">
|
<img loading="lazy" decoding="async" width="{ attachment.width }" height="{ attachment.height }" class="attachment media" alt="Attachment" src="{ attachmentUrl(attachment.file) }">
|
||||||
{:else if renderAs === AttachmentRenderAs.Video}
|
{:else if renderAs === AttachmentRenderAs.Video}
|
||||||
<!-- svelte-ignore a11y-media-has-caption -->
|
<!-- svelte-ignore a11y-media-has-caption -->
|
||||||
<video controls="controls" class="attachment media" src="{ attachmentUrl(attachment.file) }"></video>
|
<video controls="controls" class="attachment media" src="{ attachmentUrl(attachment.file) }" width=400 height=400></video>
|
||||||
{:else if renderAs === AttachmentRenderAs.DownloadableFile}
|
{:else if renderAs === AttachmentRenderAs.DownloadableFile}
|
||||||
<div class="attachment attachment-card">
|
<div class="attachment attachment-card">
|
||||||
<div class="attachment-filename">{ attachment.file_name }</div>
|
<div class="attachment-filename">{ attachment.file_name }</div>
|
||||||
|
|
Loading…
Reference in a new issue