From 10dc5fd388839741e9a7cf5898ada45dc0baf699 Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Date: Sat, 25 Jan 2025 18:32:23 +0000 Subject: [PATCH] chore: ui improvements --- packages/react-native-ui/src/Layout.tsx | 2 +- packages/react-native-ui/src/Search.tsx | 2 +- packages/react-native-ui/src/TreeNode.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-native-ui/src/Layout.tsx b/packages/react-native-ui/src/Layout.tsx index 70731fc4ce..9bec92ceef 100644 --- a/packages/react-native-ui/src/Layout.tsx +++ b/packages/react-native-ui/src/Layout.tsx @@ -289,7 +289,7 @@ const Nav = styled.View({ justifyContent: 'space-between', width: '100%', height: 40, - paddingHorizontal: 12, + paddingHorizontal: 6, }); const Container = styled.View(({ theme }) => ({ diff --git a/packages/react-native-ui/src/Search.tsx b/packages/react-native-ui/src/Search.tsx index 26812ee636..9b2232f265 100644 --- a/packages/react-native-ui/src/Search.tsx +++ b/packages/react-native-ui/src/Search.tsx @@ -79,7 +79,7 @@ const Input = styled(TextInput)(({ theme }) => ({ borderWidth: 1, borderColor: theme.appBorderColor, backgroundColor: 'transparent', - borderRadius: 4, + borderRadius: 6, fontSize: theme.typography.size.s1 + 1, color: theme.color.defaultText, width: '100%', diff --git a/packages/react-native-ui/src/TreeNode.tsx b/packages/react-native-ui/src/TreeNode.tsx index 1e2953a58e..85b5bc26f7 100644 --- a/packages/react-native-ui/src/TreeNode.tsx +++ b/packages/react-native-ui/src/TreeNode.tsx @@ -74,6 +74,7 @@ const LeafNode = styled.TouchableOpacity<{ depth?: number; selected?: boolean }> const LeafNodeText = styled.Text<{ depth?: number; selected?: boolean }>(({ theme, selected }) => ({ fontSize: theme.typography.size.s2, flexShrink: 1, + fontWeight: selected ? 'bold' : 'normal', color: selected ? theme.color.lightest : theme.color.defaultText, }));