Skip to content

Commit

Permalink
fix: Announcement modal horizontal scrollbar (#24889)
Browse files Browse the repository at this point in the history
Co-authored-by: dougfabris <[email protected]>
  • Loading branch information
2 people authored and abhinavkrin committed Oct 25, 2024
1 parent bc1972f commit 19c3c51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/giant-spiders-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fixes an issue where the Announcement modal with long words was adding a horizontal scrollbar
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Announcement = ({ announcement, announcementDetails }: AnnouncementProps)
? announcementDetails()
: setModal(
<GenericModal icon={null} title={t('Announcement')} confirmText={t('Close')} onConfirm={closeModal} onClose={closeModal}>
<Box>
<Box overflow='hidden' wordBreak='break-word'>
<MarkdownText content={announcement} parseEmoji />
</Box>
</GenericModal>,
Expand Down

0 comments on commit 19c3c51

Please sign in to comment.