style(reactions): Align reactions with text for preview messages

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2025-01-16 14:07:04 +01:00
parent 9e7996b766
commit b26b598a6c
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -150,6 +150,7 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) :
messageText.text = ""
}
itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
val paddingSide = DisplayUtils.convertDpToPixel(8.0f, context!!).toInt()
Reaction().showReactions(
message,
::clickOnReaction,
@ -159,6 +160,7 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) :
true,
viewThemeUtils!!
)
reactionsBinding!!.reactionsEmojiWrapper.setPadding(paddingSide,0,paddingSide,0)
if (userAvatar != null) {
if (message.isGrouped || message.isOneToOneConversation) {