From 324324bae73ec66d0f6f52afb1faa926733912ef Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 7 Jan 2023 04:36:07 +0100 Subject: [PATCH] Follow-up --- src/components/left/main/hooks/useChatListEntry.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/left/main/hooks/useChatListEntry.tsx b/src/components/left/main/hooks/useChatListEntry.tsx index 2895c3269..e6d22b1ea 100644 --- a/src/components/left/main/hooks/useChatListEntry.tsx +++ b/src/components/left/main/hooks/useChatListEntry.tsx @@ -9,7 +9,7 @@ import type { import type { ObserveFn } from '../../../../hooks/useIntersectionObserver'; import type { Thread } from '../../../../global/types'; -import { ANIMATION_END_DELAY } from '../../../../config'; +import { ANIMATION_END_DELAY, CHAT_HEIGHT_PX } from '../../../../config'; import { renderTextWithEntities } from '../../../common/helpers/renderTextWithEntities'; import { getMessageMediaHash, @@ -173,7 +173,7 @@ export default function useChatListEntry({ element.style.opacity = '1'; }); } else if (animationType === ChatAnimationTypes.Move) { - element.style.transform = `translate3d(0, ${-orderDiff * 100}%, 0)`; + element.style.transform = `translate3d(0, ${-orderDiff * CHAT_HEIGHT_PX}px, 0)`; fastRaf(() => { element.classList.add('animate-transform');