From b24027b2ea4f46bc0d140ad35f480ebfee9365a5 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov <Alexander.Onnikov@xored.com> Date: Wed, 25 Sep 2024 00:24:03 +0700 Subject: [PATCH] fix: attachment actions icon and image size (#6710) Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com> --- .../src/components/AttachmentActions.svelte | 6 +++--- .../src/components/AttachmentPreview.svelte | 2 +- plugins/attachment-resources/src/components/Photos.svelte | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/attachment-resources/src/components/AttachmentActions.svelte b/plugins/attachment-resources/src/components/AttachmentActions.svelte index 9072bf146e..1e8fdc8c80 100644 --- a/plugins/attachment-resources/src/components/AttachmentActions.svelte +++ b/plugins/attachment-resources/src/components/AttachmentActions.svelte @@ -23,7 +23,7 @@ getPreviewAlignment, previewTypes } from '@hcengineering/presentation' - import { IconMoreH, IconOpen, Menu, Action as UIAction, closeTooltip, showPopup, tooltip } from '@hcengineering/ui' + import { IconMoreH, Menu, Action as UIAction, closeTooltip, showPopup, tooltip } from '@hcengineering/ui' import view, { Action } from '@hcengineering/view' import AttachmentAction from './AttachmentAction.svelte' @@ -84,7 +84,7 @@ const openAction: UIAction = { label: view.string.Open, - icon: IconOpen, + icon: view.icon.Open, action: async (props: any, evt: Event) => { showPreview(evt as MouseEvent) } @@ -126,7 +126,7 @@ {#if canPreview} <AttachmentAction label={view.string.Open} - icon={IconOpen} + icon={view.icon.Open} size="small" dataId="open-in-sidebar" action={showPreview} diff --git a/plugins/attachment-resources/src/components/AttachmentPreview.svelte b/plugins/attachment-resources/src/components/AttachmentPreview.svelte index c190389330..9b164c2499 100644 --- a/plugins/attachment-resources/src/components/AttachmentPreview.svelte +++ b/plugins/attachment-resources/src/components/AttachmentPreview.svelte @@ -51,7 +51,7 @@ if (listProvider !== undefined) listProvider.updateFocus(value) const popupInfo = showPopup( FilePreviewPopup, - { file: value.file, name: value.name, contentType: value.type }, + { file: value.file, name: value.name, contentType: value.type, metadata: value.metadata }, value.type.startsWith('image/') ? 'centered' : 'float' ) dispatch('open', popupInfo.id) diff --git a/plugins/attachment-resources/src/components/Photos.svelte b/plugins/attachment-resources/src/components/Photos.svelte index c78ab056e9..bbd0fed0da 100644 --- a/plugins/attachment-resources/src/components/Photos.svelte +++ b/plugins/attachment-resources/src/components/Photos.svelte @@ -92,7 +92,7 @@ if (item !== undefined) { showPopup( FilePreviewPopup, - { file: item.file, name: item.name, contentType: item.type }, + { file: item.file, name: item.name, contentType: item.type, metadata: item.metadata }, item.type.startsWith('image/') ? 'centered' : 'float' ) } else {