Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

Show handle in recent searches and fix truncation (#4917)

Co-authored-by: Hailey <me@haileyok.com>

authored by

Roland Crosby
Hailey
and committed by
GitHub
75c19b2d 88f879ff

+5 -9
+5 -9
src/view/screens/Search/Search.tsx
··· 894 894 } 895 895 AutocompleteResults = React.memo(AutocompleteResults) 896 896 897 - function truncateText(text: string, maxLength: number) { 898 - if (text.length > maxLength) { 899 - return text.substring(0, maxLength) + '...' 900 - } 901 - return text 902 - } 903 - 904 897 function SearchHistory({ 905 898 searchHistory, 906 899 selectedProfiles, ··· 965 958 style={styles.profileAvatar as StyleProp<ImageStyle>} 966 959 accessibilityIgnoresInvertColors 967 960 /> 968 - <Text style={[pal.text, styles.profileName]}> 969 - {truncateText(profile.displayName || '', 12)} 961 + <Text 962 + style={[pal.text, styles.profileName]} 963 + numberOfLines={1}> 964 + {profile.displayName || profile.handle} 970 965 </Text> 971 966 </Link> 972 967 <Pressable ··· 1118 1113 borderRadius: 45, 1119 1114 }, 1120 1115 profileName: { 1116 + width: 78, 1121 1117 fontSize: 12, 1122 1118 textAlign: 'center', 1123 1119 marginTop: 5,