Fixed display of long text for open button in web page views.

This commit is contained in:
23rd 2024-11-19 04:40:07 +03:00 committed by John Preston
parent 244696ae24
commit bd2ae03ab4

View file

@ -1232,8 +1232,9 @@ void WebPage::draw(Painter &p, const PaintContext &context) const {
.position = QPoint(
inner.x() + (inner.width() - _openButton.maxWidth()) / 2,
end + st::historyPageButtonPadding.top()),
.availableWidth = paintw,
.availableWidth = inner.width(),
.now = context.now,
.elisionLines = 1,
});
}
}