Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix borders for labels tab (#3261)

* fix borders for labels tab

* rm entire wrapping view

authored by

Hailey and committed by
GitHub
4de8e8fa 9c49b209

+21 -39
+21 -39
src/screens/Profile/Sections/Labels.tsx
··· 48 48 }, 49 49 ref, 50 50 ) { 51 - const t = useTheme() 52 51 const {_} = useLingui() 53 52 const {height: minHeight} = useSafeAreaFrame() 54 53 ··· 66 65 })) 67 66 68 67 return ( 69 - <CenteredView> 70 - <View 71 - style={[ 72 - a.border_l, 73 - a.border_r, 74 - a.border_t, 75 - t.atoms.border_contrast_low, 76 - { 77 - minHeight, 78 - }, 79 - ]}> 80 - {isLabelerLoading ? ( 81 - <View style={[a.w_full, a.align_center]}> 82 - <Loader size="xl" /> 83 - </View> 84 - ) : labelerError || !labelerInfo ? ( 85 - <ErrorState 86 - error={ 87 - labelerError?.toString() || 88 - _(msg`Something went wrong, please try again.`) 89 - } 90 - /> 91 - ) : ( 92 - <ProfileLabelsSectionInner 93 - moderationOpts={moderationOpts} 94 - labelerInfo={labelerInfo} 95 - scrollElRef={scrollElRef} 96 - headerHeight={headerHeight} 97 - /> 98 - )} 99 - </View> 68 + <CenteredView style={{flex: 1, minHeight}} sideBorders> 69 + {isLabelerLoading ? ( 70 + <View style={[a.w_full, a.align_center]}> 71 + <Loader size="xl" /> 72 + </View> 73 + ) : labelerError || !labelerInfo ? ( 74 + <ErrorState 75 + error={ 76 + labelerError?.toString() || 77 + _(msg`Something went wrong, please try again.`) 78 + } 79 + /> 80 + ) : ( 81 + <ProfileLabelsSectionInner 82 + moderationOpts={moderationOpts} 83 + labelerInfo={labelerInfo} 84 + scrollElRef={scrollElRef} 85 + headerHeight={headerHeight} 86 + /> 87 + )} 100 88 </CenteredView> 101 89 ) 102 90 }) ··· 149 137 }} 150 138 contentOffset={{x: 0, y: headerHeight * -1}} 151 139 onScroll={scrollHandler}> 152 - <View 153 - style={[ 154 - a.pt_xl, 155 - a.px_lg, 156 - isNative && a.border_t, 157 - t.atoms.border_contrast_low, 158 - ]}> 140 + <View style={[a.pt_xl, a.px_lg, a.border_t, t.atoms.border_contrast_low]}> 159 141 <View> 160 142 <Text style={[t.atoms.text_contrast_high, a.leading_snug, a.text_sm]}> 161 143 <Trans>