Fix message ViewButton rendering in 1x.

This commit is contained in:
John Preston 2021-11-01 13:08:43 +04:00
parent 65d96c0364
commit 60444b1fee
1 changed files with 3 additions and 1 deletions

View File

@ -208,7 +208,9 @@ void ViewButton::draw(
pen.setWidth(st::lineWidth);
p.setPen(pen);
p.setBrush(Qt::NoBrush);
p.drawRoundedRect(r, st::roundRadiusLarge, st::roundRadiusLarge);
const auto half = st::lineWidth / 2.;
const auto rf = QRectF(r).marginsRemoved({ half, half, half, half });
p.drawRoundedRect(rf, st::roundRadiusLarge, st::roundRadiusLarge);
_inner->text.drawElided(
p,