From f06a7a6da1bc70d15110e5e6e004ca744c42dbc7 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 5 Aug 2024 15:11:22 +0800 Subject: [PATCH] timelines: workaround to a bug moves the panels --- src/timelines/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timelines/Home.tsx b/src/timelines/Home.tsx index c70cf39..509a2f1 100644 --- a/src/timelines/Home.tsx +++ b/src/timelines/Home.tsx @@ -229,7 +229,7 @@ const Home: ParentComponent = (props) => { const onTabClick = (idx: number) => { const items = panelList.querySelectorAll(".tab-panel"); if (items.length > idx) { - items.item(idx).scrollIntoView({ block: "nearest", behavior: "smooth" }); + items.item(idx).scrollIntoView({ block: "start", behavior: "smooth" }); } };