Fixed display of title in sponsored messages with shorter description.

This commit is contained in:
23rd 2024-11-27 15:01:46 +03:00
parent 339d7be9c1
commit 5d71286000

View file

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