diff --git a/webapp/channels/src/components/invitation_modal/result_table.tsx b/webapp/channels/src/components/invitation_modal/result_table.tsx index 55fc3e2b1c..75c4affe83 100644 --- a/webapp/channels/src/components/invitation_modal/result_table.tsx +++ b/webapp/channels/src/components/invitation_modal/result_table.tsx @@ -90,22 +90,24 @@ export default function ResultTable(props: Props) { return (
{header} -
-
-
- -
-
- -
-
-
+ + + + + + + + {props.rows.map((invitation: InviteResult) => { let icon; let username; @@ -163,27 +165,26 @@ export default function ResultTable(props: Props) { } return ( -
-
+
+ + ); })} - - - + +
+ + + +
{icon} {username} {botBadge} {guestBadge} - -
+
{reason} - - +
); } diff --git a/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx b/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx index e38e60d540..7c2be22f58 100644 --- a/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx +++ b/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx @@ -262,9 +262,22 @@ export default class UsersEmailsInput extends React.PureComponent MultiValueRemove = (props: MultiValueRemoveProps) => { const {children, innerProps} = props; - return (
- {children || } -
); + return ( +
{ + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault(); + e.stopPropagation(); + innerProps.onClick?.(e as unknown as React.MouseEvent); + } + }} + > + {children || } +
+ ); }; components = {