From 86754f64cdcf3b80ccdf7c62511c5fff6051ce3a Mon Sep 17 00:00:00 2001 From: asfak00 Date: Fri, 15 Nov 2024 21:34:10 +0600 Subject: [PATCH 01/22] update --- src/Components/Overview/Sidebar/index.jsx | 79 ++++++++++++++++------- src/index.css | 2 +- 2 files changed, 55 insertions(+), 26 deletions(-) diff --git a/src/Components/Overview/Sidebar/index.jsx b/src/Components/Overview/Sidebar/index.jsx index ad5478f..f5d6c75 100644 --- a/src/Components/Overview/Sidebar/index.jsx +++ b/src/Components/Overview/Sidebar/index.jsx @@ -24,7 +24,7 @@ const index = ({ startContent, setStartContent }) => { if (sidebarRef.current) { const activeElement = sidebarRef.current.querySelector('.border-primary'); if (activeElement) { - activeElement.scrollIntoView({ + activeElement.scrollIntoView({ behavior: 'instant', block: 'center' }); @@ -37,7 +37,7 @@ const index = ({ startContent, setStartContent }) => { className="py-6 px-10 border-r h-[89vh] border-border flex-col gap-4 overflow-y-scroll sticky top-18 left-0 w-[320px] bg-secondary z-20 1024px:flex hidden"> {/* get starts */} -