mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 03:54:57 +02:00
Do not preload video by default (#8286)
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user