From 5d15702563161ffaf3a53edb73f72cc3cd6674ed Mon Sep 17 00:00:00 2001 From: Kristina Date: Thu, 8 Feb 2024 19:28:26 +0400 Subject: [PATCH] UBERF-5326: fix extra scroll and higlight when thread opened (#4579) Signed-off-by: Kristina Fefelova --- .../activity-message/ActivityMessageTemplate.svelte | 1 - plugins/chunter-resources/src/utils.ts | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/activity-resources/src/components/activity-message/ActivityMessageTemplate.svelte b/plugins/activity-resources/src/components/activity-message/ActivityMessageTemplate.svelte index 5f28240ac9..a046f51c47 100644 --- a/plugins/activity-resources/src/components/activity-message/ActivityMessageTemplate.svelte +++ b/plugins/activity-resources/src/components/activity-message/ActivityMessageTemplate.svelte @@ -282,7 +282,6 @@ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - width: calc(100% - 3.5rem); span { margin-left: 0.25rem; diff --git a/plugins/chunter-resources/src/utils.ts b/plugins/chunter-resources/src/utils.ts index 65f63f9ceb..9a28577f40 100644 --- a/plugins/chunter-resources/src/utils.ts +++ b/plugins/chunter-resources/src/utils.ts @@ -382,10 +382,14 @@ export async function filterChatMessages ( export function buildThreadLink (loc: Location, contextId: Ref, _id: Ref): Location { const specials = chatSpecials.map(({ id }) => id) + const isSameContext = loc.path[3] === contextId + + if (!isSameContext) { + loc.query = { message: _id } + } if (loc.path[2] === chunterId && specials.includes(loc.path[3])) { loc.path[4] = _id - loc.query = { message: _id } return loc }