Fix monospace-wide comments thread root message.

Fixes #16343.
This commit is contained in:
John Preston 2022-11-09 12:51:06 +04:00
parent 5b17416177
commit 9229c57e7a

View file

@ -3129,7 +3129,9 @@ QRect Message::countGeometry() const {
contentLeft += (availableWidth - contentWidth) / 2;
}
} else if (contentWidth < availableWidth && commentsRoot) {
contentLeft += ((st::msgMaxWidth + 2 * st::msgPhotoSkip) - contentWidth) / 2;
contentLeft += std::max(
((st::msgMaxWidth + 2 * st::msgPhotoSkip) - contentWidth) / 2,
0);
}
const auto contentTop = marginTop();