fix: some 🐛

This commit is contained in:
codytseng
2025-01-03 13:04:57 +08:00
parent 3429c83085
commit 14fbf7a7be
4 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ export default function ScrollToTopButton({
return ( return (
<div <div
className={cn( className={cn(
`sticky z-20 flex justify-end pr-3 transition-opacity duration-700 ${visible ? '' : 'opacity-0'}`, `fixed sm:sticky z-20 flex justify-end w-full pr-3 transition-opacity duration-700 ${visible ? '' : 'opacity-0'}`,
className className
)} )}
style={{ style={{

View File

@@ -12,7 +12,7 @@ export function Titlebar({
return ( return (
<div <div
className={cn( className={cn(
'sticky top-0 w-full z-20 bg-background/90 backdrop-blur-xl duration-700 transition-transform [&_svg]:size-4 [&_svg]:shrink-0', 'fixed sm:sticky top-0 w-full z-20 bg-background/90 backdrop-blur-xl duration-700 transition-transform [&_svg]:size-4 [&_svg]:shrink-0',
visible ? '' : '-translate-y-full', visible ? '' : '-translate-y-full',
className className
)} )}

View File

@@ -89,7 +89,7 @@ const PrimaryPageLayout = forwardRef(
scrollBarClassName="sm:z-50" scrollBarClassName="sm:z-50"
ref={scrollAreaRef} ref={scrollAreaRef}
style={{ style={{
paddingBottom: 'env(safe-area-inset-bottom)' paddingBottom: 'calc(env(safe-area-inset-bottom) + 3rem)'
}} }}
> >
{titlebar && ( {titlebar && (

View File

@@ -75,7 +75,7 @@ export default function SecondaryPageLayout({
scrollBarClassName="sm:z-50" scrollBarClassName="sm:z-50"
ref={scrollAreaRef} ref={scrollAreaRef}
style={{ style={{
paddingBottom: 'env(safe-area-inset-bottom)' paddingBottom: 'calc(env(safe-area-inset-bottom) + 3rem)'
}} }}
> >
<SecondaryPageTitlebar <SecondaryPageTitlebar