Skip to content

Commit f8b7392

Browse files
committed
Fix new offline chat image on android
1 parent 9ec57c0 commit f8b7392

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/pages/home/report/AnimatedEmptyStateBackground.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function AnimatedEmptyStateBackground() {
4343
}, [isReducedMotionEnabled]);
4444

4545
return (
46-
<View style={StyleUtils.getReportWelcomeBackgroundContainerStyle(isSmallScreenWidth)}>
46+
<View style={StyleUtils.getReportWelcomeBackgroundContainerStyle()}>
4747
<Animated.Image
4848
source={illustrations.EmptyStateBackgroundImage}
4949
style={[StyleUtils.getReportWelcomeBackgroundImageStyle(isSmallScreenWidth), animatedStyles]}

src/pages/home/report/ReportActionItemCreated.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ function ReportActionItemCreated(props: ReportActionItemCreatedProps) {
5858
errors={props.report?.errorFields?.addWorkspaceRoom ?? props.report?.errorFields?.createChat}
5959
errorRowStyles={[styles.ml10, styles.mr2]}
6060
onClose={() => navigateToConciergeChatAndDeleteReport(props.report?.reportID ?? props.reportID)}
61-
needsOffscreenAlphaCompositing
6261
>
6362
<View style={[styles.pRelative]}>
6463
<AnimatedEmptyStateBackground />

src/styles/utils/index.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -800,15 +800,7 @@ function getReportWelcomeBackgroundImageStyle(isSmallScreenWidth: boolean): Imag
800800
/**
801801
* Gets the style for the container of the empty state background image that overlap the created report action
802802
*/
803-
function getReportWelcomeBackgroundContainerStyle(isSmallScreenWidth: boolean): ViewStyle {
804-
if (isSmallScreenWidth) {
805-
return {
806-
position: 'absolute',
807-
top: CONST.EMPTY_STATE_BACKGROUND.OVERLAP,
808-
width: '100%',
809-
};
810-
}
811-
803+
function getReportWelcomeBackgroundContainerStyle(): ViewStyle {
812804
return {
813805
position: 'absolute',
814806
top: CONST.EMPTY_STATE_BACKGROUND.OVERLAP,

0 commit comments

Comments
 (0)