From b4c6b99e091fdbb84be0a85192a975a5c9d35732 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Wed, 3 Aug 2022 16:38:00 -0600 Subject: [PATCH] Remove bottom bar height correction --- web/components/groups/group-chat.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/components/groups/group-chat.tsx b/web/components/groups/group-chat.tsx index 2b5bd6e1..dc350cc0 100644 --- a/web/components/groups/group-chat.tsx +++ b/web/components/groups/group-chat.tsx @@ -50,9 +50,8 @@ export function GroupChat(props: { const { width, height } = useWindowSize() const [containerRef, setContainerRef] = useState(null) // Subtract bottom bar when it's showing (less than lg screen) - const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0 - const remainingHeight = - (height ?? 0) - (containerRef?.offsetTop ?? 0) - bottomBarHeight + // const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0 + const remainingHeight = (height ?? 0) - (containerRef?.offsetTop ?? 0) useMemo(() => { // Group messages with createdTime within 2 minutes of each other.