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:
Kristina
2024-02-08 22:28:26 +07:00
committed by GitHub
parent b2b794fa02
commit 5d15702563
2 changed files with 5 additions and 2 deletions
@@ -282,7 +282,6 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 3.5rem);
span {
margin-left: 0.25rem;
+5 -1
View File
@@ -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
}