fix call display a little

This commit is contained in:
Luke Berndt
2023-01-17 09:10:50 -05:00
parent ce92109347
commit 02c710198b
2 changed files with 2 additions and 3 deletions

View File

@@ -508,7 +508,7 @@ function CallPlayer(props) {
style={{ minHeight: '100vh' }}
>
<div ref={loadNewerRef} />
<ListCalls callsData={callsData} activeCallId={currentCallId} talkgroups={talkgroupsData?talkgroupsData.talkgroups:false} playCall={playCall} />
<ListCalls callsData={callsData} activeCallId={isPlaying?currentCallId:false} talkgroups={talkgroupsData?talkgroupsData.talkgroups:false} playCall={playCall} />
<div ref={loadOlderRef} style={{ height: 50 }} />

View File

@@ -1,4 +1,4 @@
import React, { useEffect, useRef } from "react";
import React, { useEffect, useLayoutEffect, useRef } from "react";
import CallItem from "./CallItem";
import {
Icon,
@@ -17,7 +17,6 @@ const ListCalls = (props) => {
useEffect(() => {
if (activeCallRef.current) {
activeCallRef.current.scrollIntoView({
behavior: "smooth",
block: "center",
});
}