Skip to content

Commit f105ac8

Browse files
authored
Merge pull request #53730 from bernhardoj/fix/53251-skeleton-cut-off-when-search-empty
Hide search skeleton empty view scrollbar
2 parents 0dd36c9 + b052ae9 commit f105ac8

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/components/EmptyStateComponent/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function EmptyStateComponent({
2626
headerStyles,
2727
headerContentStyles,
2828
lottieWebViewStyles,
29+
showsVerticalScrollIndicator,
2930
minModalHeight = 400,
3031
}: EmptyStateComponentProps) {
3132
const styles = useThemeStyles();
@@ -83,6 +84,7 @@ function EmptyStateComponent({
8384

8485
return (
8586
<ScrollView
87+
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
8688
contentContainerStyle={[{minHeight: minModalHeight}, styles.flexGrow1, styles.flexShrink0, containerStyles]}
8789
style={styles.flex1}
8890
>

src/components/EmptyStateComponent/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type SharedProps<T> = {
2323
headerContentStyles?: StyleProp<ViewStyle & ImageStyle>;
2424
lottieWebViewStyles?: React.CSSProperties | undefined;
2525
minModalHeight?: number;
26+
showsVerticalScrollIndicator?: boolean;
2627
};
2728

2829
type MediaType<HeaderMedia, T extends MediaTypes> = SharedProps<T> & {

src/pages/Search/EmptySearchView.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ function EmptySearchView({type, hasResults}: EmptySearchViewProps) {
241241
<>
242242
<EmptyStateComponent
243243
SkeletonComponent={SearchRowSkeleton}
244+
showsVerticalScrollIndicator={false}
244245
headerMediaType={CONST.EMPTY_STATE_MEDIA.ANIMATION}
245246
headerMedia={content.headerMedia}
246247
headerStyles={[styles.emptyStateCardIllustrationContainer, styles.overflowHidden]}

0 commit comments

Comments
 (0)