This commit is contained in:
2025-12-07 01:11:40 +08:00
parent bbb5170802
commit f5a4cd5a37
7 changed files with 110 additions and 20 deletions

View File

@@ -189,6 +189,8 @@ function Index() {
);
}
const [scrollToTarget, setScrollToTarget] = useState("");
return (
<ScrollView
className={styles["detail-page"]}
@@ -199,6 +201,8 @@ function Index() {
}}
enhanced
showScrollbar={false}
scrollIntoView={scrollToTarget}
scroll-with-animation
>
{/* custom navbar */}
<View
@@ -278,6 +282,7 @@ function Index() {
game_id={Number(detail.id)}
message_id={message_id ? Number(message_id) : undefined}
publisher_id={Number(detail.publisher_id)}
onScrollTo={setScrollToTarget}
/>
{/* sticky bottom action bar */}
<StickyBottom