diff --git a/plugins/activity-resources/src/components/ActivityDocLink.svelte b/plugins/activity-resources/src/components/ActivityDocLink.svelte
index 4b6824a964..08b0ad553f 100644
--- a/plugins/activity-resources/src/components/ActivityDocLink.svelte
+++ b/plugins/activity-resources/src/components/ActivityDocLink.svelte
@@ -29,7 +29,7 @@
{/if}
- {title}
+ {title}
@@ -38,5 +38,9 @@
margin-left: 0.25rem;
font-weight: 400;
line-height: 1.25rem;
+
+ &.withoutMargin {
+ margin: 0;
+ }
}
diff --git a/plugins/chunter-resources/src/components/activity/BacklinkCreatedLabel.svelte b/plugins/chunter-resources/src/components/activity/BacklinkCreatedLabel.svelte
index f5a9744d40..ed2efaa50a 100644
--- a/plugins/chunter-resources/src/components/activity/BacklinkCreatedLabel.svelte
+++ b/plugins/chunter-resources/src/components/activity/BacklinkCreatedLabel.svelte
@@ -79,7 +79,9 @@
{#if doc && value}
-
+
{/if}
diff --git a/plugins/chunter-resources/src/components/chat-message/ChatMessagePresenter.svelte b/plugins/chunter-resources/src/components/chat-message/ChatMessagePresenter.svelte
index 1c4c3d559f..1fdf903c2d 100644
--- a/plugins/chunter-resources/src/components/chat-message/ChatMessagePresenter.svelte
+++ b/plugins/chunter-resources/src/components/chat-message/ChatMessagePresenter.svelte
@@ -19,11 +19,11 @@
import { createQuery, getClient, MessageViewer } from '@hcengineering/presentation'
import core from '@hcengineering/core/lib/component'
import { AttachmentDocList } from '@hcengineering/attachment-resources'
- import { LinkPresenter } from '@hcengineering/view-resources'
+ import { getDocLinkTitle, LinkPresenter } from '@hcengineering/view-resources'
import { Action, Button, IconEdit, ShowMore } from '@hcengineering/ui'
import view from '@hcengineering/view'
import activity, { DisplayActivityMessage } from '@hcengineering/activity'
- import { ActivityMessageTemplate } from '@hcengineering/activity-resources'
+ import { ActivityDocLink, ActivityMessageTemplate } from '@hcengineering/activity-resources'
import chunter, { ChatMessage, ChatMessageViewlet } from '@hcengineering/chunter'
import ChatMessageHeader from './ChatMessageHeader.svelte'
@@ -43,6 +43,7 @@
export let excludedActions: string[] = []
export let withFlatActions: boolean = true
export let hoverable = true
+ export let inline = false
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined
@@ -150,7 +151,16 @@
let refInput: ChatMessageInput
-{#if value}
+{#if inline && object}
+ {#await getDocLinkTitle(client, object._id, object._class, object) then title}
+
+ {/await}
+{:else if value && !inline}