mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Fix root comments post layout.
This commit is contained in:
parent
92dbd7089b
commit
784f10678c
1 changed files with 5 additions and 1 deletions
|
@ -2401,7 +2401,11 @@ int Message::resizeContentGetHeight(int newWidth) {
|
|||
const auto bubble = drawBubble();
|
||||
|
||||
// This code duplicates countGeometry() but also resizes media.
|
||||
auto contentWidth = newWidth - (st::msgMargin.left() + st::msgMargin.right());
|
||||
const auto commentsRoot = (context() == Context::Replies)
|
||||
&& data()->isDiscussionPost();
|
||||
auto contentWidth = newWidth
|
||||
- st::msgMargin.left()
|
||||
- (commentsRoot ? st::msgMargin.left() : st::msgMargin.right());
|
||||
if (hasFromPhoto()) {
|
||||
if (const auto size = rightActionSize()) {
|
||||
contentWidth -= size->width() + (st::msgPhotoSkip - st::historyFastShareSize);
|
||||
|
|
Loading…
Add table
Reference in a new issue