Skip to content

Commit 7277641

Browse files
committed
fix: match the width of search bar to the same as domain admin page
1 parent 5d94c63 commit 7277641

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/pages/domain/Groups/DomainGroupsPage.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ function DomainGroupsPage({route}: DomainGroupsPageProps) {
8080

8181
const listHeaderContent = shouldShowSearchBar ? (
8282
<View style={styles.flexColumn}>
83-
<View style={[styles.mh5, styles.gap3, styles.mb5, styles.flexRow, styles.alignItemsCenter]}>
84-
<SearchBar
85-
inputValue={inputValue}
86-
onChangeText={setInputValue}
87-
label={translate('domain.groups.findGroup')}
88-
shouldShowEmptyState={false}
89-
style={[styles.flex1, styles.mh0, styles.mb0]}
90-
/>
83+
<View style={[styles.mh5, styles.gap3, styles.mb5, shouldUseNarrowLayout ? styles.flexColumn : styles.flexRow]}>
84+
<View style={[shouldUseNarrowLayout && styles.w100]}>
85+
<SearchBar
86+
inputValue={inputValue}
87+
onChangeText={setInputValue}
88+
label={translate('domain.groups.findGroup')}
89+
shouldShowEmptyState={false}
90+
style={[styles.flex1, styles.mh0, styles.mb0]}
91+
/>
92+
</View>
9193
</View>
9294
{shouldShowEmptySearchMessage && (
9395
<View style={[styles.ph5, styles.pb5]}>

0 commit comments

Comments
 (0)