feat: redux timeline cache
This commit is contained in:
@ -168,7 +168,7 @@ export default function Note(props: NoteProps) {
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (entry && inView && extendable === false) {
|
||||
const h = entry?.target.clientHeight ?? 0;
|
||||
const h = (entry?.target as HTMLDivElement)?.offsetHeight ?? 0;
|
||||
if (h > 650) {
|
||||
setExtendable(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user