From 1b9ed2fcda574448b5e4f49bb83625f415d0431e Mon Sep 17 00:00:00 2001 From: JJeeff248 Date: Fri, 23 Feb 2024 13:24:25 +1300 Subject: [PATCH 1/2] Added scrolling to the bottom of the page --- src/course-viewer/CourseViewer.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/course-viewer/CourseViewer.jsx b/src/course-viewer/CourseViewer.jsx index 42d2125..6ca8d82 100644 --- a/src/course-viewer/CourseViewer.jsx +++ b/src/course-viewer/CourseViewer.jsx @@ -416,6 +416,9 @@ const CourseViewer = (props) => { setCurrentEdit(newAss); setChangesMade(true); setValidChanges(false); + setTimeout(() => { + window.scrollTo(0, document.body.scrollHeight); + }, 250); }} > Add Assessment From 5bbbb3182092fa5b1f9ce5b017af86af6592ccb0 Mon Sep 17 00:00:00 2001 From: JJeeff248 Date: Fri, 23 Feb 2024 13:24:47 +1300 Subject: [PATCH 2/2] Made the scrolling smooth --- public/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/index.html b/public/index.html index 04e3737..929ee0a 100644 --- a/public/index.html +++ b/public/index.html @@ -29,6 +29,12 @@ Twenty Three Fifty Nine + +