Do not preload video by default (#8286)

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
This commit is contained in:
Denis Tingaikin
2025-03-20 01:10:48 +07:00
committed by GitHub
parent b885d355b0
commit c83c8e5db2
8 changed files with 8 additions and 8 deletions
@@ -36,7 +36,7 @@
export let withShowMore: boolean = false
export let attachmentImageSize: 'x-large' | undefined = undefined
export let type: ActivityMessageViewType = 'default'
export let videoPreload = true
export let videoPreload = false
export let hideLink = false
export let compact = false
export let readonly = false
@@ -26,7 +26,7 @@
export let value: Doc & { attachments?: number }
export let attachments: Attachment[] | undefined = undefined
export let imageSize: AttachmentImageSize = 'x-large'
export let videoPreload = true
export let videoPreload = false
export let isOwn = false
const query = createQuery()
@@ -23,7 +23,7 @@
export let attachments: WithLookup<Attachment>[]
export let savedAttachmentsIds: Ref<Attachment>[] = []
export let imageSize: AttachmentImageSize = 'auto'
export let videoPreload = true
export let videoPreload = false
export let isOwn = false
let otherAttachments: WithLookup<Attachment>[]
@@ -22,7 +22,7 @@
export let attachments: WithLookup<Attachment>[] = []
export let savedAttachmentsIds: Ref<Attachment>[] = []
export let imageSize: AttachmentImageSize | undefined = undefined
export let videoPreload = true
export let videoPreload = false
</script>
{#if attachments.length}
@@ -31,7 +31,7 @@
export let listProvider: ListSelectionProvider | undefined = undefined
export let imageSize: AttachmentImageSize = 'auto'
export let removable: boolean = false
export let videoPreload = true
export let videoPreload = false
const dispatch = createEventDispatcher()
@@ -19,7 +19,7 @@
import { HlsVideo, Video } from '@hcengineering/ui'
export let value: WithLookup<Attachment> | BlobType
export let preload = true
export let preload = false
const maxSizeRem = 25
const baseSizeRem = 20
@@ -48,7 +48,7 @@
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let withShowMore: boolean = true
export let attachmentImageSize: AttachmentImageSize = 'x-large'
export let videoPreload = true
export let videoPreload = false
export let hideLink = false
export let compact = false
export let readonly = false
@@ -38,7 +38,7 @@
export let withShowMore: boolean = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let attachmentImageSize: AttachmentImageSize = 'x-large'
export let videoPreload = true
export let videoPreload = false
export let readonly = false
export let onClick: (() => void) | undefined = undefined