Format code.

This commit is contained in:
Paul
2021-07-06 19:29:27 +01:00
parent 1fcf4df1ed
commit 67d3fb35a4
27 changed files with 188 additions and 116 deletions

View File

@@ -95,10 +95,11 @@ export function MessageArea({ id }: Props) {
animateScroll.scrollTo(
Math.max(
101,
ref.current ? (ref.current.scrollTop +
(ref.current.scrollHeight -
scrollState.current.previousHeight))
: 101
ref.current
? ref.current.scrollTop +
(ref.current.scrollHeight -
scrollState.current.previousHeight)
: 101,
),
{
container: ref.current,
@@ -128,7 +129,8 @@ export function MessageArea({ id }: Props) {
ref.current?.clientHeight
: true;
const atTop = (offset = 0) => ref.current ? ref.current.scrollTop <= offset : false;
const atTop = (offset = 0) =>
ref.current ? ref.current.scrollTop <= offset : false;
// ? Handle events from renderer.
useEffect(() => {