mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 12:05:36 +00:00
UBERF-5326: fix extra scroll and higlight when thread opened (#4579)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
b2b794fa02
commit
5d15702563
@ -282,7 +282,6 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: calc(100% - 3.5rem);
|
||||
|
||||
span {
|
||||
margin-left: 0.25rem;
|
||||
|
@ -382,10 +382,14 @@ export async function filterChatMessages (
|
||||
|
||||
export function buildThreadLink (loc: Location, contextId: Ref<DocNotifyContext>, _id: Ref<ActivityMessage>): 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user