Skip to content

Commit

Permalink
fix: apps name misalignment in case of no icons (#30356)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Sep 12, 2023
1 parent b58aee7 commit 1000b9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-trains-glow.md
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

Fixed the issue of apps icon uneven alignment in case of missing icons inside message composer toolbar & message toolbar menu.
Expand Up @@ -101,6 +101,7 @@ const MessageActionMenu = ({ options, onChangeMenuVisibility, ...props }: Messag
data-qa-type='message-action'
data-qa-id={option.id}
role={option.role ? option.role : 'button'}
gap={!option.icon && option.type === 'apps'}
/>
))}
{index !== arr.length - 1 && <OptionDivider />}
Expand Down
Expand Up @@ -93,6 +93,7 @@ const ActionsToolbarDropdown = ({ isRecording, rid, tmid, actions, ...props }: A
chat: chatContext,
})
}
gap={!item.icon}
>
{item.icon && <OptionIcon name={item.icon as ComponentProps<typeof OptionIcon>['name']} />}
<OptionContent>{item.name}</OptionContent>
Expand Down

0 comments on commit 1000b9b

Please sign in to comment.