From 416ad8d147c36a0d074c7fa805b9236217bdf814 Mon Sep 17 00:00:00 2001 From: Louis Rouffineau Date: Wed, 29 Jan 2025 17:00:56 +0100 Subject: [PATCH] Styling enhancement for name chips, and overall paddings --- features/profiles/components/social-names.tsx | 13 +--- features/profiles/profile.screen.tsx | 67 +++++++++---------- 2 files changed, 34 insertions(+), 46 deletions(-) diff --git a/features/profiles/components/social-names.tsx b/features/profiles/components/social-names.tsx index 552446d9c..93497d1ec 100644 --- a/features/profiles/components/social-names.tsx +++ b/features/profiles/components/social-names.tsx @@ -44,7 +44,6 @@ export function SocialNames({ socials }: ISocialNamesProps) { ) => { return items?.map((item) => ( handleNamePress(getValue(item))} @@ -53,7 +52,7 @@ export function SocialNames({ socials }: ISocialNamesProps) { }; return ( - <> + {translate("profile.names")} {renderSocialChips(socials.userNames ?? [], (item) => item.name)} @@ -65,18 +64,12 @@ export function SocialNames({ socials }: ISocialNamesProps) { (item) => item.domain! )} - + ); } const $chipContainer: ThemedStyle = ({ spacing }) => ({ flexWrap: "wrap", gap: spacing.xs, - paddingVertical: spacing.sm, -}); - -const $chip: ThemedStyle = ({ colors, borderRadius }) => ({ - backgroundColor: colors.background.surface, - borderColor: colors.border.subtle, - borderRadius: borderRadius.xs, + paddingTop: spacing.sm, }); diff --git a/features/profiles/profile.screen.tsx b/features/profiles/profile.screen.tsx index 9bd633199..740a5889b 100644 --- a/features/profiles/profile.screen.tsx +++ b/features/profiles/profile.screen.tsx @@ -260,42 +260,38 @@ export function ProfileScreen() { {isMyProfile && ( - - - { - router.navigate("Blocked"); - }, + + { + router.navigate("Blocked"); }, - /*{ - label: translate("profile.settings.keep_messages"), - value: "Forever", - onValueChange: () => {}, - },*/ - { - label: translate("log_out"), - isWarning: true, - onPress: () => - showDisconnectActionSheet( - theme.isDark ? "dark" : "light" - ), - }, - ]} - /> - - + }, + /*{ + label: translate("profile.settings.keep_messages"), + value: "Forever", + onValueChange: () => {}, + },*/ + { + label: translate("log_out"), + isWarning: true, + onPress: () => + showDisconnectActionSheet(theme.isDark ? "dark" : "light"), + }, + ]} + /> + )} @@ -315,7 +311,6 @@ const $section: ThemedStyle = ({ spacing, colors }) => ({ const $borderTop: ThemedStyle = ({ spacing, colors }) => ({ borderTopWidth: spacing.xxs, borderTopColor: colors.background.sunken, - paddingVertical: spacing.lg, }); const $headerRight: ThemedStyle = ({ spacing }) => ({