diff options
author | Eric Bailey <git@esb.lol> | 2025-04-07 19:41:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 17:41:20 -0700 |
commit | 4879a07701784580e8f7f432b255a9ccbcd107a1 (patch) | |
tree | 5183c7a89a0f6b1a0b500b3953f7b450d95c47c3 /src | |
parent | 28876a4b23ec9a2269f19f0914aa751de7e85f99 (diff) | |
download | voidsky-4879a07701784580e8f7f432b255a9ccbcd107a1.tar.zst |
Rm sticky headers (#8154)
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Search/Explore.tsx | 18 | ||||
-rw-r--r-- | src/screens/Search/components/ModuleHeader.tsx | 5 |
2 files changed, 3 insertions, 20 deletions
diff --git a/src/screens/Search/Explore.tsx b/src/screens/Search/Explore.tsx index a978ec556..faf951ddf 100644 --- a/src/screens/Search/Explore.tsx +++ b/src/screens/Search/Explore.tsx @@ -51,7 +51,7 @@ import {ExploreInterestsCard} from '#/screens/Search/modules/ExploreInterestsCar import {ExploreRecommendations} from '#/screens/Search/modules/ExploreRecommendations' import {ExploreTrendingTopics} from '#/screens/Search/modules/ExploreTrendingTopics' import {ExploreTrendingVideos} from '#/screens/Search/modules/ExploreTrendingVideos' -import {atoms as a, native, platform, useTheme, web} from '#/alf' +import {atoms as a, native, platform, useTheme} from '#/alf' import {Admonition} from '#/components/Admonition' import {Button} from '#/components/Button' import * as FeedCard from '#/components/FeedCard' @@ -202,7 +202,6 @@ type ExploreScreenItems = export function Explore({ focusSearchInput, - headerHeight, }: { focusSearchInput: (tab: 'user' | 'profile' | 'feed') => void headerHeight: number @@ -608,18 +607,7 @@ export function Explore({ switch (item.type) { case 'topBorder': return ( - <View - style={[ - a.w_full, - t.atoms.border_contrast_low, - a.border_t, - headerHeight && - web({ - position: 'sticky', - top: headerHeight, - }), - ]} - /> + <View style={[a.w_full, t.atoms.border_contrast_low, a.border_t]} /> ) case 'header': { return ( @@ -805,7 +793,6 @@ export function Explore({ case 'preview:header': { return ( <ModuleHeader.Container - headerHeight={headerHeight} style={[ a.pt_xs, t.atoms.border_contrast_low, @@ -893,7 +880,6 @@ export function Explore({ selectedInterest, _, fetchNextPageFeedPreviews, - headerHeight, ], ) diff --git a/src/screens/Search/components/ModuleHeader.tsx b/src/screens/Search/components/ModuleHeader.tsx index 9c208d2b2..13951cff1 100644 --- a/src/screens/Search/components/ModuleHeader.tsx +++ b/src/screens/Search/components/ModuleHeader.tsx @@ -6,7 +6,7 @@ import {PressableScale} from '#/lib/custom-animations/PressableScale' import {makeCustomFeedLink} from '#/lib/routes/links' import {logger} from '#/logger' import {UserAvatar} from '#/view/com/util/UserAvatar' -import {atoms as a, native, useTheme, type ViewStyleProp, web} from '#/alf' +import {atoms as a, native, useTheme, type ViewStyleProp} from '#/alf' import {Button, ButtonIcon} from '#/components/Button' import * as FeedCard from '#/components/FeedCard' import {sizes as iconSizes} from '#/components/icons/common' @@ -17,11 +17,9 @@ import {Text, type TextProps} from '#/components/Typography' export function Container({ style, children, - headerHeight, bottomBorder, }: { children: React.ReactNode - headerHeight?: number bottomBorder?: boolean } & ViewStyleProp) { const t = useTheme() @@ -35,7 +33,6 @@ export function Container({ a.pb_md, a.gap_sm, t.atoms.bg, - headerHeight && web({position: 'sticky', top: headerHeight}), bottomBorder && [a.border_b, t.atoms.border_contrast_low], style, ]}> |