Fixed display of error in cloud password section with new naturalWidth.

This commit is contained in:
23rd
2025-08-14 15:50:35 +03:00
parent 86b94b4723
commit d614de6f5e
@@ -211,14 +211,12 @@ not_null<Ui::FlatLabel*> AddError(
not_null<Ui::VerticalLayout*> content,
Ui::PasswordInput *input) {
const auto error = content->add(
object_ptr<Ui::CenterWrap<Ui::FlatLabel>>(
object_ptr<Ui::FlatLabel>(
content,
object_ptr<Ui::FlatLabel>(
content,
// Set any text to resize.
tr::lng_language_name(tr::now),
st::settingLocalPasscodeError)),
st::changePhoneDescriptionPadding)->entity();
QString(),
st::settingLocalPasscodeError),
st::changePhoneDescriptionPadding,
style::al_top);
error->hide();
if (input) {
QObject::connect(input, &Ui::MaskedInputField::changed, [=] {