Skip to content

Commit d55c8d4

Browse files
committed
Fix section header paddings to 8px
1 parent addc495 commit d55c8d4

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

src/pages/Search/SearchPageNarrow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function SearchPageNarrow({queryJSON, headerButtonsOptions, currentSearchResults
158158
</View>
159159
<View style={[styles.flex1]}>
160160
<Animated.View style={[topBarAnimatedStyle, !searchRouterListVisible && styles.narrowSearchRouterInactiveStyle, styles.flex1, styles.bgTransparent]}>
161-
<View style={[styles.narrowSearchHeaderStyle, styles.flex1]}>
161+
<View style={[styles.flex1, styles.pt2, styles.appBG]}>
162162
<SearchPageHeader
163163
queryJSON={queryJSON}
164164
searchRouterListVisible={searchRouterListVisible}

src/pages/Search/SearchTypeMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function SearchTypeMenu({queryJSON}: SearchTypeMenuProps) {
261261
))}
262262
{shouldShowSavedSearchesMenuItemTitle && (
263263
<View>
264-
<Text style={[styles.sectionTitle, styles.pb1]}>{translate('search.savedSearchesMenuItemTitle')}</Text>
264+
<Text style={styles.sectionTitle}>{translate('search.savedSearchesMenuItemTitle')}</Text>
265265
{renderSavedSearchesSection(savedSearchesMenuItems)}
266266
<DeleteConfirmModal />
267267
</View>

src/pages/home/sidebar/SidebarLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function SidebarLinks({insets, optionListItems, isLoading, priorityMode = CONST.
8484
const viewMode = priorityMode === CONST.PRIORITY_MODE.GSD ? CONST.OPTION_MODE.COMPACT : CONST.OPTION_MODE.DEFAULT;
8585

8686
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
87-
const contentContainerStyles = useMemo(() => StyleSheet.flatten([styles.sidebarListContainer, {paddingBottom: StyleUtils.getSafeAreaMargins(insets).marginBottom}]), [insets]);
87+
const contentContainerStyles = useMemo(() => StyleSheet.flatten([styles.pt2, {paddingBottom: StyleUtils.getSafeAreaMargins(insets).marginBottom}]), [insets]);
8888

8989
return (
9090
<View style={[styles.flex1, styles.h100]}>

src/styles/index.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,11 +1815,6 @@ const styles = (theme: ThemeColors) =>
18151815
lineHeight: 20,
18161816
},
18171817

1818-
sidebarListContainer: {
1819-
...spacing.pt3,
1820-
paddingBottom: 4,
1821-
},
1822-
18231818
sidebarListItem: {
18241819
justifyContent: 'center',
18251820
textDecorationLine: 'none',
@@ -3069,8 +3064,7 @@ const styles = (theme: ThemeColors) =>
30693064
},
30703065

30713066
sectionTitle: {
3072-
...spacing.pt2,
3073-
...spacing.pb4,
3067+
...spacing.pv2,
30743068
...spacing.ph2,
30753069
fontSize: 13,
30763070
...FontUtils.fontFamily.platform.EXP_NEUE,
@@ -3857,12 +3851,6 @@ const styles = (theme: ThemeColors) =>
38573851
justifyContent: 'flex-start',
38583852
},
38593853

3860-
narrowSearchHeaderStyle: {
3861-
flex: 1,
3862-
paddingTop: 12,
3863-
backgroundColor: theme.appBG,
3864-
},
3865-
38663854
narrowSearchRouterInactiveStyle: {
38673855
left: 0,
38683856
right: 0,

0 commit comments

Comments
 (0)