UBERF-5595: set up attachments sizes (#4746)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-02-24 00:03:59 +07:00
committed by GitHub
parent 0349cec3a2
commit 3e782658c6
23 changed files with 485 additions and 131 deletions
@@ -18,6 +18,7 @@
import { getDocLinkTitle } from '@hcengineering/view-resources'
import { getClient } from '@hcengineering/presentation'
import activity from '@hcengineering/activity'
import { AttachmentImageSize } from '@hcengineering/attachment-resources'
import chunter from '../../plugin'
import ChatMessagePresenter from '../chat-message/ChatMessagePresenter.svelte'
@@ -38,6 +39,7 @@
export let inline = false
export let withShowMore: boolean = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let attachmentImageSize: AttachmentImageSize = 'x-large'
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined
@@ -73,6 +75,7 @@
{hoverable}
{hoverStyles}
{withShowMore}
{attachmentImageSize}
showLinksPreview={false}
{onClick}
{onReply}