diff --git a/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx b/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx index 32851a4bfe..90c02190d4 100644 --- a/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx +++ b/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx @@ -74,7 +74,7 @@ const EmojiSelector: React.FC = ({ { name: 'offset', options: { - offset: [-10, 0], + offset: [-10, 12], }, }, ], diff --git a/app/soapbox/features/chats/components/chat-message.tsx b/app/soapbox/features/chats/components/chat-message.tsx index 953a9a1b83..06d87a6b36 100644 --- a/app/soapbox/features/chats/components/chat-message.tsx +++ b/app/soapbox/features/chats/components/chat-message.tsx @@ -7,7 +7,7 @@ import { defineMessages, useIntl } from 'react-intl'; import { openModal } from 'soapbox/actions/modals'; import { initReport } from 'soapbox/actions/reports'; -import { HStack, Icon, IconButton, Stack, Text } from 'soapbox/components/ui'; +import { HStack, Icon, Stack, Text } from 'soapbox/components/ui'; import DropdownMenuContainer from 'soapbox/containers/dropdown-menu-container'; import emojify from 'soapbox/features/emoji/emoji'; import Bundle from 'soapbox/features/ui/components/bundle'; @@ -189,181 +189,199 @@ const ChatMessage = (props: IChatMessage) => { }, [chatMessage, chat]); return ( -
-
- +
+ {!features.chatEmojiReactions ? ( + createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })} + > + + + ) : null} + + {menu.length > 0 && ( + setIsMenuOpen(true)} + onClose={() => setIsMenuOpen(false)} + > + + + )} +
+ + + + + {maybeRenderMedia(chatMessage)} + + {content && ( + +
+ +
+
+ )} +
+
+ + {(features.chatEmojiReactions && chatMessage.emoji_reactions) ? ( +
+ {emojiReactionRows?.map((emojiReactionRow: any, idx: number) => ( + + {emojiReactionRow.map((emojiReaction: any, idx: number) => ( + createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })} + onRemoveReaction={(emoji) => deleteReaction.mutate({ emoji, messageId: chatMessage.id })} + /> + ))} + + ))} +
+ ) : null} + + - - {menu.length > 0 && ( - setIsMenuOpen(true)} - onClose={() => setIsMenuOpen(false)} - > - - - )} + + + {intl.formatTime(chatMessage.created_at)} + - {features.chatEmojiReactions ? ( - createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })} - > - - - ) : null} - - - {maybeRenderMedia(chatMessage)} - - {content && ( - -
- -
-
- )} -
-
- - {(features.chatEmojiReactions && chatMessage.emoji_reactions) ? ( -
- {emojiReactionRows?.map((emojiReactionRow: any, idx: number) => ( - - {emojiReactionRow.map((emojiReaction: any, idx: number) => ( - createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })} - onRemoveReaction={(emoji) => deleteReaction.mutate({ emoji, messageId: chatMessage.id })} - /> - ))} - - ))} -
- ) : null} - - -
- - - {intl.formatTime(chatMessage.created_at)} - - - {(isMyMessage && features.chatsReadReceipts) ? ( - <> - {isRead ? ( - - - - ) : ( - - - - )} - - ) : null} - -
-
-
-
+ {(isMyMessage && features.chatsReadReceipts) ? ( + <> + {isRead ? ( + + + + ) : ( + + + + )} + + ) : null} + +
+ + ); };