mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fixed display of title in sponsored messages with shorter description.
This commit is contained in:
parent
339d7be9c1
commit
5d71286000
1 changed files with 1 additions and 1 deletions
|
@ -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 - st::webPagePhotoDelta)
|
? (paintw - (_pixh ? (_pixh - st::webPagePhotoDelta) : 0))
|
||||||
: paintw;
|
: paintw;
|
||||||
_title.drawLeftElided(
|
_title.drawLeftElided(
|
||||||
p,
|
p,
|
||||||
|
|
Loading…
Add table
Reference in a new issue