feat: pwa

This commit is contained in:
codytseng
2024-12-22 16:37:38 +08:00
parent 869e164469
commit c5b0c0543a
23 changed files with 3825 additions and 51 deletions

View File

@@ -58,7 +58,7 @@ export default function SecondaryPageLayout({
<div className="sm:px-4 pb-4 pt-11 w-full h-full">{children}</div>
<ScrollToTopButton
scrollAreaRef={scrollAreaRef}
visible={!hideScrollToTopButton && visible}
visible={!hideScrollToTopButton && visible && lastScrollTop > 500}
/>
</ScrollArea>
)