feat: pwa
This commit is contained in:
parent
869e164469
commit
c5b0c0543a
23 changed files with 3825 additions and 51 deletions
|
|
@ -2,7 +2,6 @@ import Logo from '@/assets/Logo'
|
|||
import AccountButton from '@/components/AccountButton'
|
||||
import NotificationButton from '@/components/NotificationButton'
|
||||
import PostButton from '@/components/PostButton'
|
||||
import RefreshButton from '@/components/RefreshButton'
|
||||
import RelaySettingsButton from '@/components/RelaySettingsButton'
|
||||
import ScrollToTopButton from '@/components/ScrollToTopButton'
|
||||
import SearchButton from '@/components/SearchButton'
|
||||
|
|
@ -62,7 +61,7 @@ const PrimaryPageLayout = forwardRef(({ children }: { children?: React.ReactNode
|
|||
>
|
||||
<PrimaryPageTitlebar visible={visible} />
|
||||
<div className="sm:px-4 pb-4 pt-11 xl:pt-4">{children}</div>
|
||||
<ScrollToTopButton scrollAreaRef={scrollAreaRef} visible={visible} />
|
||||
<ScrollToTopButton scrollAreaRef={scrollAreaRef} visible={visible && lastScrollTop > 500} />
|
||||
</ScrollArea>
|
||||
)
|
||||
})
|
||||
|
|
@ -107,7 +106,6 @@ function PrimaryPageTitlebar({ visible = true }: { visible?: boolean }) {
|
|||
<SearchButton />
|
||||
</div>
|
||||
<div className="flex gap-2 items-center">
|
||||
<RefreshButton />
|
||||
<RelaySettingsButton />
|
||||
<NotificationButton />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue