diff --git a/src/components/NoteList/index.tsx b/src/components/NoteList/index.tsx index 42ee7939..c4d0a734 100644 --- a/src/components/NoteList/index.tsx +++ b/src/components/NoteList/index.tsx @@ -60,6 +60,7 @@ export default function NoteList({ ...filter } }, [JSON.stringify(filter), isPictures]) + const topRef = useRef(null) useEffect(() => { if (relayUrls.length === 0) return @@ -174,14 +175,16 @@ export default function NoteList({ } return ( -
+
{ setListMode(listMode) + topRef.current?.scrollIntoView({ behavior: 'instant', block: 'end' }) storage.setNoteListMode(listMode) }} /> +
{ setRefreshCount((count) => count + 1)