Fixed incorrect calculation of title width in sponsored messages.

This commit is contained in:
23rd 2024-12-04 01:07:19 +03:00
parent 721877e10a
commit bbf9d523a6

View file

@ -1077,7 +1077,7 @@ void WebPage::draw(Painter &p, const PaintContext &context) const {
? _parent->skipBlockWidth() ? _parent->skipBlockWidth()
: 0; : 0;
const auto titleWidth = sponsored const auto titleWidth = sponsored
? (paintw - (_pixh ? (_pixh - st::webPagePhotoDelta) : 0)) ? (paintw - (_pixh ? (_pixh + st::webPagePhotoDelta) : 0))
: paintw; : paintw;
_title.drawLeftElided( _title.drawLeftElided(
p, p,