Skip to content

Commit b75609e

Browse files
committed
fix filter chips height
1 parent 5cd7bf7 commit b75609e

2 files changed

Lines changed: 45 additions & 21 deletions

File tree

mobile/src/data/products.js

Lines changed: 42 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/src/screens/HomeScreen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function HomeScreen({ navigation }) {
7070
showsHorizontalScrollIndicator={false}
7171
keyExtractor={item => item}
7272
style={styles.catList}
73-
contentContainerStyle={{ paddingHorizontal: 16 }}
73+
contentContainerStyle={{ paddingHorizontal: 16, paddingVertical: 6, alignItems: 'center' }}
7474
renderItem={({ item }) => (
7575
<TouchableOpacity
7676
style={[styles.catChip, activeCategory === item && styles.catChipActive]}
@@ -113,8 +113,8 @@ const styles = StyleSheet.create({
113113
avatarSmall: { width: 28, height: 28, borderRadius: 14, backgroundColor: colors.brand, alignItems: 'center', justifyContent: 'center' },
114114
searchBar: { flexDirection: 'row', alignItems: 'center', backgroundColor: colors.lightGray, marginHorizontal: 16, borderRadius: 12, paddingHorizontal: 12, paddingVertical: 10, gap: 8, marginBottom: 8 },
115115
searchInput: { flex: 1, fontSize: 14, color: colors.dark },
116-
catList: { marginBottom: 8 },
117-
catChip: { paddingHorizontal: 14, paddingVertical: 7, borderRadius: 20, backgroundColor: colors.lightGray, marginRight: 8 },
116+
catList: { marginBottom: 10, maxHeight: 48 },
117+
catChip: { paddingHorizontal: 16, paddingVertical: 8, borderRadius: 20, backgroundColor: colors.lightGray, marginRight: 8, height: 36, justifyContent: 'center' },
118118
catChipActive: { backgroundColor: colors.brand },
119119
catText: { fontSize: 12, fontWeight: '600', color: colors.gray },
120120
catTextActive: { color: colors.white },

0 commit comments

Comments
 (0)