mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
fix call display a little
This commit is contained in:
@@ -508,7 +508,7 @@ function CallPlayer(props) {
|
|||||||
style={{ minHeight: '100vh' }}
|
style={{ minHeight: '100vh' }}
|
||||||
>
|
>
|
||||||
<div ref={loadNewerRef} />
|
<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 }} />
|
<div ref={loadOlderRef} style={{ height: 50 }} />
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useRef } from "react";
|
import React, { useEffect, useLayoutEffect, useRef } from "react";
|
||||||
import CallItem from "./CallItem";
|
import CallItem from "./CallItem";
|
||||||
import {
|
import {
|
||||||
Icon,
|
Icon,
|
||||||
@@ -17,7 +17,6 @@ const ListCalls = (props) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (activeCallRef.current) {
|
if (activeCallRef.current) {
|
||||||
activeCallRef.current.scrollIntoView({
|
activeCallRef.current.scrollIntoView({
|
||||||
behavior: "smooth",
|
|
||||||
block: "center",
|
block: "center",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user