2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fixed inline message restriction width

This commit is contained in:
RadRussianRus
2019-10-07 18:55:39 +03:00
committed by John Preston
parent 261a83eda3
commit 883d6dcede

View File

@@ -97,6 +97,7 @@ void Inner::checkRestrictedPeer() {
_restrictedLabel.create(this, *error, st::stickersRestrictedLabel);
_restrictedLabel->show();
_restrictedLabel->move(st::inlineResultsLeft - st::buttonRadius, st::stickerPanPadding);
_restrictedLabel->resizeToNaturalWidth(width() - (st::inlineResultsLeft - st::buttonRadius) * 2);
if (_switchPmButton) {
_switchPmButton->hide();
}