mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
fix: attachment actions icon and image size (#6710)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
822731c23c
commit
b24027b2ea
@ -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}
|
||||
|
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user