Remove bottom bar height correction
This commit is contained in:
parent
756115ba54
commit
b4c6b99e09
|
@ -50,9 +50,8 @@ export function GroupChat(props: {
|
||||||
const { width, height } = useWindowSize()
|
const { width, height } = useWindowSize()
|
||||||
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(null)
|
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(null)
|
||||||
// Subtract bottom bar when it's showing (less than lg screen)
|
// Subtract bottom bar when it's showing (less than lg screen)
|
||||||
const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0
|
// const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0
|
||||||
const remainingHeight =
|
const remainingHeight = (height ?? 0) - (containerRef?.offsetTop ?? 0)
|
||||||
(height ?? 0) - (containerRef?.offsetTop ?? 0) - bottomBarHeight
|
|
||||||
|
|
||||||
useMemo(() => {
|
useMemo(() => {
|
||||||
// Group messages with createdTime within 2 minutes of each other.
|
// Group messages with createdTime within 2 minutes of each other.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user