Skip to content

Commit 03d026a

Browse files
committed
fix inconsistent height
1 parent c7dbc88 commit 03d026a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/pages/Search/SearchTypeMenuAccordion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function AnimatedBadge({text, isExpanded}: AnimatedBadgeProps) {
6161
<Animated.View style={[badgeAnimatedStyle]}>
6262
<Badge
6363
text={text}
64-
badgeStyles={styles.todoBadge}
64+
badgeStyles={styles.searchSectionBadge}
6565
success
6666
isCondensed
6767
/>
@@ -103,7 +103,7 @@ function SearchTypeMenuAccordion({title, defaultExpanded = true, badgeText, chil
103103
hoverStyle={styles.hoveredComponentBG}
104104
>
105105
<Text
106-
style={[styles.flex1, styles.textLabelSupporting]}
106+
style={[styles.flex1, styles.mutedNormalTextLabel]}
107107
accessibilityRole={CONST.ROLE.HEADER}
108108
>
109109
{title}

src/styles/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5638,6 +5638,12 @@ const staticStyles = (theme: ThemeColors) =>
56385638
justifyContent: 'center',
56395639
},
56405640

5641+
searchSectionBadge: {
5642+
alignItems: 'center',
5643+
justifyContent: 'center',
5644+
height: 16,
5645+
},
5646+
56415647
stickToBottom: {
56425648
position: 'absolute',
56435649
bottom: 0,

0 commit comments

Comments
 (0)