From 02c710198b9dd10c364e87a42cf915e866caa13f Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 17 Jan 2023 09:10:50 -0500 Subject: [PATCH] fix call display a little --- frontend/src/Call/CallPlayer.js | 2 +- frontend/src/Call/ListCalls.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/Call/CallPlayer.js b/frontend/src/Call/CallPlayer.js index b476b65..22706c9 100644 --- a/frontend/src/Call/CallPlayer.js +++ b/frontend/src/Call/CallPlayer.js @@ -508,7 +508,7 @@ function CallPlayer(props) { style={{ minHeight: '100vh' }} >
- +
diff --git a/frontend/src/Call/ListCalls.js b/frontend/src/Call/ListCalls.js index 7d187e5..3aa621f 100644 --- a/frontend/src/Call/ListCalls.js +++ b/frontend/src/Call/ListCalls.js @@ -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", }); }