Message: Fix layout for reply with a sticker (#3008)
This commit is contained in:
parent
8be0459193
commit
62c1fa23ce
@ -748,7 +748,7 @@ const Message: FC<OwnProps & StateProps> = ({
|
|||||||
if (calculatedWidth) {
|
if (calculatedWidth) {
|
||||||
style = `width: ${calculatedWidth + extraPadding}px`;
|
style = `width: ${calculatedWidth + extraPadding}px`;
|
||||||
reactionsMaxWidth = calculatedWidth + EXTRA_SPACE_FOR_REACTIONS;
|
reactionsMaxWidth = calculatedWidth + EXTRA_SPACE_FOR_REACTIONS;
|
||||||
} else if (sticker) {
|
} else if (sticker && !hasSubheader) {
|
||||||
const { width } = getStickerDimensions(sticker, isMobile);
|
const { width } = getStickerDimensions(sticker, isMobile);
|
||||||
style = `width: ${width + extraPadding}px`;
|
style = `width: ${width + extraPadding}px`;
|
||||||
reactionsMaxWidth = width + EXTRA_SPACE_FOR_REACTIONS;
|
reactionsMaxWidth = width + EXTRA_SPACE_FOR_REACTIONS;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user