From 91999a63033f63e96a86652add3828924055a1e1 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" }); } };