fix: update content view class name in SafeNavigationScrollView usage

This commit is contained in:
lawvs 2025-06-24 16:58:03 +08:00
parent 7afbc5958b
commit b87569eb04
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import { useTypeScriptHappyCallback } from "@follow/hooks"
import { cn } from "@follow/utils"
import { useSetAtom, useStore } from "jotai"
import type { PropsWithChildren } from "react"
import { use, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
@ -134,7 +135,7 @@ export const SafeNavigationScrollView = ({
{...props}
>
<View style={{ height: headerHeight - (withTopInset ? insets.top : 0) }} />
<View style={contentViewStyle} className={contentViewClassName}>
<View style={contentViewStyle} className={cn("flex-1", contentViewClassName)}>
{children}
</View>
{ScrollViewBottom}

View File

@ -131,7 +131,6 @@ export const GeneralScreen: NavigationControllerView = () => {
return (
<SafeNavigationScrollView
className="bg-system-grouped-background"
contentViewClassName="flex-1"
Header={<NavigationBlurEffectHeaderView title={t("titles.general")} />}
>
{/* Language */}