Skip to content

Commit 072b1cc

Browse files
committed
fix: adjust spacing and border for app list
1 parent cad0cbf commit 072b1cc

1 file changed

Lines changed: 22 additions & 8 deletions

File tree

sub_components/AppList.tsx

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ const AppList: React.FC<AppListProps> = ({usageStats, isDailyList}) => {
3030
return (
3131
<View style={styles.appList}>
3232
<Text style={[styles.heading, theme.basic]}>App List</Text>
33-
<View style={[styles.itemContainer, theme.basic]}>
33+
<View
34+
style={[
35+
styles.itemContainer,
36+
theme.basic,
37+
{borderColor: theme.basic.color},
38+
]}>
3439
<Text
3540
style={[
3641
styles.headerText,
@@ -49,7 +54,13 @@ const AppList: React.FC<AppListProps> = ({usageStats, isDailyList}) => {
4954
</Text>
5055
</View>
5156
{usageStats.map((appUsage: AppUsageProps, idx: number) => (
52-
<View key={`item-${idx}`} style={[styles.itemContainer, theme.basic]}>
57+
<View
58+
key={`item-${idx}`}
59+
style={[
60+
styles.itemContainer,
61+
theme.basic,
62+
{borderColor: theme.basic.color},
63+
]}>
5364
<View style={styles.appInfo}>
5465
<Image
5566
source={{uri: `data:image/png;base64,${appUsage.appIconBase64}`}}
@@ -99,24 +110,27 @@ const styles = StyleSheet.create({
99110
textAlign: 'center',
100111
},
101112
itemContainer: {
102-
marginVertical: '2%',
103-
paddingVertical: '1%',
104-
paddingHorizontal: '2%',
113+
marginVertical: '1%',
114+
paddingVertical: '2%',
115+
paddingHorizontal: '3%',
105116
width: '100%',
106117
flexDirection: 'row',
107118
justifyContent: 'space-between',
108-
borderRadius: 10,
109-
elevation: 10,
119+
alignItems: 'center',
120+
borderWidth: 0.05,
121+
borderRadius: 12,
122+
elevation: 5,
110123
},
111124
headerText: {
112125
fontSize: 15,
113126
fontWeight: '500',
114127
},
115128
appInfo: {
116129
flexDirection: 'row',
130+
alignItems: 'center',
117131
},
118132
appIcon: {
119-
marginRight: 5,
133+
marginRight: 7,
120134
width: 22,
121135
height: 22,
122136
},

0 commit comments

Comments
 (0)