Reactions: Fix position when text is on top (#6267)

This commit is contained in:
zubiden 2025-09-30 16:52:08 +02:00 committed by Alexander Zinchuk
parent 2208d967fd
commit 7902a58075

View File

@ -803,7 +803,9 @@ const Message: FC<OwnProps & StateProps> = ({
&& !isInDocumentGroupNotLast && !isStoryMention && !hasTtl && !isAccountFrozen;
const hasOutsideReactions = !withVoiceTranscription && hasReactions
&& (isCustomShape || ((photo || video || storyData || (location?.mediaType === 'geo')) && !hasText));
&& (isCustomShape || (
(photo || video || storyData || (location?.mediaType === 'geo')) && (!hasText || isInvertedMedia))
);
const contentClassName = buildContentClassName(message, album, {
poll,
@ -1099,7 +1101,7 @@ const Message: FC<OwnProps & StateProps> = ({
noMediaCorners && 'no-media-corners',
);
const hasCustomAppendix = isLastInGroup
&& (!hasText || (isInvertedMedia && !hasFactCheck && !hasReactions)) && !withCommentButton;
&& (!hasText || (isInvertedMedia && !hasFactCheck && reactionsPosition !== 'inside')) && !withCommentButton;
const textContentClass = buildClassName(
'text-content',
'clearfix',