Skip to content

Commit

Permalink
add a gap
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Sep 11, 2023
1 parent dfdf401 commit ad656d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-trains-glow.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const ActionsToolbarDropdown = ({ isRecording, rid, tmid, actions, ...props }: A
chat: chatContext,
})
}
icon={item.icon as ComponentProps<typeof Option>['icon']}
gap={!item.icon}
>
{item.icon && <OptionIcon name={item.icon as ComponentProps<typeof OptionIcon>['name']} />}
<OptionContent>{item.name}</OptionContent>
Expand Down

0 comments on commit ad656d6

Please sign in to comment.