Skip to content

Commit

Permalink
Merge pull request #43479 from bernhardoj/fix/43115-system-chat-foote…
Browse files Browse the repository at this point in the history
…r-message-out-of-box

Fix chat with your setup specialist message not aligned and gets out of box
  • Loading branch information
puneetlath authored Jun 13, 2024
2 parents 9c3482b + b91eacb commit 4d75cb2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
23 changes: 12 additions & 11 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,18 @@ function Banner({
)}
{content && content}

{shouldRenderHTML && text ? (
<RenderHTML html={text} />
) : (
<Text
style={[styles.flex1, styles.flexWrap, textStyles]}
onPress={onPress}
suppressHighlighting
>
{text}
</Text>
)}
{text &&
(shouldRenderHTML ? (
<RenderHTML html={text} />
) : (
<Text
style={[styles.flex1, styles.flexWrap, textStyles]}
onPress={onPress}
suppressHighlighting
>
{text}
</Text>
))}
</View>
{shouldShowCloseButton && !!onClose && (
<Tooltip text={translate('common.close')}>
Expand Down
9 changes: 8 additions & 1 deletion src/pages/home/report/SystemChatReportFooterMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ function SystemChatReportFooterMessage({choice, policies, activePolicyID}: Syste
containerStyles={[styles.chatFooterBanner]}
shouldShowIcon
icon={Expensicons.Lightbulb}
content={<Text suppressHighlighting>{content}</Text>}
content={
<Text
suppressHighlighting
style={styles.flex1}
>
{content}
</Text>
}
/>
);
}
Expand Down

0 comments on commit 4d75cb2

Please sign in to comment.