mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 09:16:43 +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;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: calc(100% - 3.5rem);
|
|
||||||
|
|
||||||
span {
|
span {
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
|
@ -382,10 +382,14 @@ export async function filterChatMessages (
|
|||||||
|
|
||||||
export function buildThreadLink (loc: Location, contextId: Ref<DocNotifyContext>, _id: Ref<ActivityMessage>): Location {
|
export function buildThreadLink (loc: Location, contextId: Ref<DocNotifyContext>, _id: Ref<ActivityMessage>): Location {
|
||||||
const specials = chatSpecials.map(({ id }) => id)
|
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])) {
|
if (loc.path[2] === chunterId && specials.includes(loc.path[3])) {
|
||||||
loc.path[4] = _id
|
loc.path[4] = _id
|
||||||
loc.query = { message: _id }
|
|
||||||
return loc
|
return loc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user