diff --git a/frontend/src/component/personalDashboard/MyFlags.tsx b/frontend/src/component/personalDashboard/MyFlags.tsx index 3be135c45a..207aefe41c 100644 --- a/frontend/src/component/personalDashboard/MyFlags.tsx +++ b/frontend/src/component/personalDashboard/MyFlags.tsx @@ -40,9 +40,10 @@ const FlagListItem: FC<{ useEffect(() => { if (activeFlagRef.current) { activeFlagRef.current.scrollIntoView({ - block: 'nearest', + block: 'start', inline: 'start', }); + window.scrollTo({ top: 0 }); } }, []); const IconComponent = getFeatureTypeIcons(flag.type); diff --git a/frontend/src/component/personalDashboard/MyProjects.tsx b/frontend/src/component/personalDashboard/MyProjects.tsx index 7f71f5b115..b621fb98c3 100644 --- a/frontend/src/component/personalDashboard/MyProjects.tsx +++ b/frontend/src/component/personalDashboard/MyProjects.tsx @@ -88,9 +88,10 @@ const ProjectListItem: FC<{ useEffect(() => { if (activeProjectRef.current) { activeProjectRef.current.scrollIntoView({ - block: 'nearest', + block: 'start', inline: 'start', }); + window.scrollTo({ top: 0 }); } }, []);