feat: redux timeline cache

This commit is contained in:
2023-02-21 14:35:53 +00:00
parent a49121c05a
commit e6f64e9b9e
6 changed files with 160 additions and 69 deletions

View File

@ -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);
}