Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix profile layout shift (#1690)

authored by

dan and committed by
GitHub
eba9f8a1 2a1edab6

+2 -13
+2 -13
src/view/com/util/ViewSelector.tsx
··· 144 144 items: string[] 145 145 onSelect?: (index: number) => void 146 146 }) { 147 - const [height, setHeight] = useState(0) 148 - 149 147 const pal = usePalette('default') 150 148 const borderColor = useColorSchemeStyle( 151 149 {borderColor: colors.black}, ··· 160 158 <View 161 159 style={{ 162 160 width: '100%', 163 - position: 'relative', 164 - overflow: 'hidden', 165 - height, 166 161 backgroundColor: pal.colors.background, 167 162 }}> 168 163 <ScrollView 169 164 testID="selector" 170 165 horizontal 171 - showsHorizontalScrollIndicator={false} 172 - style={{position: 'absolute'}}> 173 - <View 174 - style={[pal.view, styles.outer]} 175 - onLayout={e => { 176 - const {height: layoutHeight} = e.nativeEvent.layout 177 - setHeight(layoutHeight || 60) 178 - }}> 166 + showsHorizontalScrollIndicator={false}> 167 + <View style={[pal.view, styles.outer]}> 179 168 {items.map((item, i) => { 180 169 const selected = i === selectedIndex 181 170 return (