Skip to content

Commit 4d75cb2

Browse files
authored
Merge pull request #43479 from bernhardoj/fix/43115-system-chat-footer-message-out-of-box
Fix chat with your setup specialist message not aligned and gets out of box
2 parents 9c3482b + b91eacb commit 4d75cb2

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

src/components/Banner.tsx

+12-11
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,18 @@ function Banner({
9393
)}
9494
{content && content}
9595

96-
{shouldRenderHTML && text ? (
97-
<RenderHTML html={text} />
98-
) : (
99-
<Text
100-
style={[styles.flex1, styles.flexWrap, textStyles]}
101-
onPress={onPress}
102-
suppressHighlighting
103-
>
104-
{text}
105-
</Text>
106-
)}
96+
{text &&
97+
(shouldRenderHTML ? (
98+
<RenderHTML html={text} />
99+
) : (
100+
<Text
101+
style={[styles.flex1, styles.flexWrap, textStyles]}
102+
onPress={onPress}
103+
suppressHighlighting
104+
>
105+
{text}
106+
</Text>
107+
))}
107108
</View>
108109
{shouldShowCloseButton && !!onClose && (
109110
<Tooltip text={translate('common.close')}>

src/pages/home/report/SystemChatReportFooterMessage.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@ function SystemChatReportFooterMessage({choice, policies, activePolicyID}: Syste
7070
containerStyles={[styles.chatFooterBanner]}
7171
shouldShowIcon
7272
icon={Expensicons.Lightbulb}
73-
content={<Text suppressHighlighting>{content}</Text>}
73+
content={
74+
<Text
75+
suppressHighlighting
76+
style={styles.flex1}
77+
>
78+
{content}
79+
</Text>
80+
}
7481
/>
7582
);
7683
}

0 commit comments

Comments
 (0)