Message: Fix layout for reply with a sticker (#3008)

This commit is contained in:
Alexander Zinchuk 2023-04-17 22:57:10 +02:00
parent 8be0459193
commit 62c1fa23ce

View File

@ -748,7 +748,7 @@ const Message: FC<OwnProps & StateProps> = ({
if (calculatedWidth) {
style = `width: ${calculatedWidth + extraPadding}px`;
reactionsMaxWidth = calculatedWidth + EXTRA_SPACE_FOR_REACTIONS;
} else if (sticker) {
} else if (sticker && !hasSubheader) {
const { width } = getStickerDimensions(sticker, isMobile);
style = `width: ${width + extraPadding}px`;
reactionsMaxWidth = width + EXTRA_SPACE_FOR_REACTIONS;