about summary refs log tree commit diff
path: root/src/components/Layout
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-12-12 11:48:26 -0600
committerGitHub <noreply@github.com>2024-12-12 11:48:26 -0600
commit2808f8b73da4791e0f3cb85b03403738e5bf6b63 (patch)
treea254debcb1b11c51489aebe3fcd0f91d72049cf9 /src/components/Layout
parentffc63dc85fc191a51c3dc12c1afcd250f95036d5 (diff)
downloadvoidsky-2808f8b73da4791e0f3cb85b03403738e5bf6b63.tar.zst
New profile feed header (#7056)
* Init hacking

* Lil baby button checkpoint

* Playing around

* Revert "Playing around"

This reverts commit f58a7fafa12269035d440cfa2d8cb1dbd562305f.

* Mostly there

* Cleanups

* Cleanup

* Fix report dialog nesting

* Remove transform on native

* Rename header

* Fix layout, overflowing FAB buttons

* Remove hack

* Couple of fixes

* Keep Pin primary CTA (#7061)

* Update src/screens/Profile/components/ProfileFeedHeader.tsx

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

* Simplify, use old string

* Wrap Trans better

---------

Co-authored-by: dan <dan.abramov@gmail.com>
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Diffstat (limited to 'src/components/Layout')
-rw-r--r--src/components/Layout/index.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx
index d08505fbf..8532cbbb4 100644
--- a/src/components/Layout/index.tsx
+++ b/src/components/Layout/index.tsx
@@ -21,6 +21,7 @@ export * as Header from '#/components/Layout/Header'
 
 export type ScreenProps = React.ComponentProps<typeof View> & {
   style?: StyleProp<ViewStyle>
+  noInsetTop?: boolean
 }
 
 /**
@@ -28,6 +29,7 @@ export type ScreenProps = React.ComponentProps<typeof View> & {
  */
 export const Screen = React.memo(function Screen({
   style,
+  noInsetTop,
   ...props
 }: ScreenProps) {
   const {top} = useSafeAreaInsets()
@@ -35,7 +37,7 @@ export const Screen = React.memo(function Screen({
     <>
       {isWeb && <WebCenterBorders />}
       <View
-        style={[a.util_screen_outer, {paddingTop: top}, style]}
+        style={[a.util_screen_outer, {paddingTop: noInsetTop ? 0 : top}, style]}
         {...props}
       />
     </>