diff options
author | Hailey <me@haileyok.com> | 2024-05-30 21:32:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 05:32:54 +0100 |
commit | 89c9fd3be16ea96182842544d76ce019cb8e1403 (patch) | |
tree | 746f4319830142ba1bdac47fef8608f05e744c56 /src/view/com/lists/ProfileLists.tsx | |
parent | 8569e2e389e756ec2df6c547e894689500d1c111 (diff) | |
download | voidsky-89c9fd3be16ea96182842544d76ce019cb8e1403.tar.zst |
Change many border widths from `1` to `hairlineWidth` (#4294)
* feed items * update some more * moar * profile card * composer and notifications * settings screen * remove border from first item in feeds * remove border from first item in feeds * more removal of top border * fix flatlist rendering * oops * scroll to top fab * a.border * centeredview/list * placeholder * web sidebar * search posts * feeds list * user lists * list header * account list width 1 * hide top border feedgens * same for lists * fix tab bar web desktop * wait... * show the border on desktop web * fix lists * fix lists * round
Diffstat (limited to 'src/view/com/lists/ProfileLists.tsx')
-rw-r--r-- | src/view/com/lists/ProfileLists.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/com/lists/ProfileLists.tsx b/src/view/com/lists/ProfileLists.tsx index 003d1c60e..d1ef05f12 100644 --- a/src/view/com/lists/ProfileLists.tsx +++ b/src/view/com/lists/ProfileLists.tsx @@ -1,6 +1,7 @@ import React from 'react' import { findNodeHandle, + ListRenderItemInfo, StyleProp, StyleSheet, View, @@ -138,12 +139,10 @@ export const ProfileLists = React.forwardRef<SectionRef, ProfileListsProps>( // = const renderItemInner = React.useCallback( - ({item}: {item: any}) => { + ({item, index}: ListRenderItemInfo<any>) => { if (item === EMPTY) { return ( - <View - testID="listsEmpty" - style={[{padding: 18, borderTopWidth: 1}, pal.border]}> + <View testID="listsEmpty" style={[{padding: 18}, pal.border]}> <Text style={pal.textLight}> <Trans>You have no lists.</Trans> </Text> @@ -173,6 +172,7 @@ export const ProfileLists = React.forwardRef<SectionRef, ProfileListsProps>( list={item} testID={`list-${item.name}`} style={styles.item} + noBorder={index === 0} /> ) }, |