Skip to content

Commit

Permalink
Merge pull request #43895 from software-mansion-labs/fix-offline-andr…
Browse files Browse the repository at this point in the history
…oid-image

Fix new offline chat image on android
  • Loading branch information
flodnv authored Jun 24, 2024
2 parents ccebefa + f8b7392 commit 6148264
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/report/AnimatedEmptyStateBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function AnimatedEmptyStateBackground() {
}, [isReducedMotionEnabled]);

return (
<View style={StyleUtils.getReportWelcomeBackgroundContainerStyle(isSmallScreenWidth)}>
<View style={StyleUtils.getReportWelcomeBackgroundContainerStyle()}>
<Animated.Image
source={illustrations.EmptyStateBackgroundImage}
style={[StyleUtils.getReportWelcomeBackgroundImageStyle(isSmallScreenWidth), animatedStyles]}
Expand Down
1 change: 0 additions & 1 deletion src/pages/home/report/ReportActionItemCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function ReportActionItemCreated(props: ReportActionItemCreatedProps) {
errors={props.report?.errorFields?.addWorkspaceRoom ?? props.report?.errorFields?.createChat}
errorRowStyles={[styles.ml10, styles.mr2]}
onClose={() => navigateToConciergeChatAndDeleteReport(props.report?.reportID ?? props.reportID)}
needsOffscreenAlphaCompositing
>
<View style={[styles.pRelative]}>
<AnimatedEmptyStateBackground />
Expand Down
10 changes: 1 addition & 9 deletions src/styles/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,15 +800,7 @@ function getReportWelcomeBackgroundImageStyle(isSmallScreenWidth: boolean): Imag
/**
* Gets the style for the container of the empty state background image that overlap the created report action
*/
function getReportWelcomeBackgroundContainerStyle(isSmallScreenWidth: boolean): ViewStyle {
if (isSmallScreenWidth) {
return {
position: 'absolute',
top: CONST.EMPTY_STATE_BACKGROUND.OVERLAP,
width: '100%',
};
}

function getReportWelcomeBackgroundContainerStyle(): ViewStyle {
return {
position: 'absolute',
top: CONST.EMPTY_STATE_BACKGROUND.OVERLAP,
Expand Down

0 comments on commit 6148264

Please sign in to comment.