From b1c0198d883a94051f8a1035217f249c25de9d82 Mon Sep 17 00:00:00 2001 From: Karol Stawowski Date: Sun, 15 Dec 2024 11:59:23 +0100 Subject: [PATCH 1/2] feat: widen recent search profile link for mobile devices --- src/view/screens/Search/Search.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 21f9c988fb9..d19a606bade 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -1058,7 +1058,10 @@ function SearchHistory({ asAnchor anchorNoUnderline onBeforePress={() => onProfileClick(profile)} - style={styles.profilePressable}> + style={[ + styles.profilePressable, + isMobile && styles.profilePressableMobile, + ]}> } @@ -1194,6 +1197,9 @@ const styles = StyleSheet.create({ profilePressable: { alignItems: 'center', }, + profilePressableMobile: { + width: '100%', + }, profileAvatar: { width: 60, height: 60, From bb402d1af0fe6b448d34e44092b61173fbf6b9c4 Mon Sep 17 00:00:00 2001 From: Karol Stawowski Date: Mon, 16 Dec 2024 16:25:37 +0100 Subject: [PATCH 2/2] chore: apply style to non-mobile screens --- src/view/screens/Search/Search.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index d19a606bade..cf00ee2bf87 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -1058,10 +1058,7 @@ function SearchHistory({ asAnchor anchorNoUnderline onBeforePress={() => onProfileClick(profile)} - style={[ - styles.profilePressable, - isMobile && styles.profilePressableMobile, - ]}> + style={styles.profilePressable}> } @@ -1196,8 +1193,6 @@ const styles = StyleSheet.create({ }, profilePressable: { alignItems: 'center', - }, - profilePressableMobile: { width: '100%', }, profileAvatar: {