mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Fix unwrapped reply overlapping timestamp.
This commit is contained in:
@@ -104,6 +104,9 @@ QSize UnwrappedMedia::countCurrentSize(int newWidth) {
|
|||||||
const auto surroundingWidth = _additionalOnTop
|
const auto surroundingWidth = _additionalOnTop
|
||||||
? std::min(newWidth - st::msgReplyPadding.left(), additional)
|
? std::min(newWidth - st::msgReplyPadding.left(), additional)
|
||||||
: (newWidth - _contentSize.width() - st::msgReplyPadding.left());
|
: (newWidth - _contentSize.width() - st::msgReplyPadding.left());
|
||||||
|
if (reply) {
|
||||||
|
[[maybe_unused]] auto h = reply->resizeToWidth(surroundingWidth);
|
||||||
|
}
|
||||||
const auto surrounding = surroundingInfo(topic, via, reply, forwarded, surroundingWidth);
|
const auto surrounding = surroundingInfo(topic, via, reply, forwarded, surroundingWidth);
|
||||||
if (_additionalOnTop) {
|
if (_additionalOnTop) {
|
||||||
_topAdded = surrounding.height + st::msgMargin.bottom();
|
_topAdded = surrounding.height + st::msgMargin.bottom();
|
||||||
|
Reference in New Issue
Block a user