fix profile page fix misaligning profiles

This commit is contained in:
Cvolton 2024-03-11 00:37:12 +01:00
parent 005d245351
commit b44184c081
No known key found for this signature in database

View file

@ -8,7 +8,8 @@ struct CustomProfilePage : Modify<CustomProfilePage, ProfilePage> {
GEODE_FORWARD_COMPAT_DISABLE_HOOKS("ProfilePage fix")
virtual TodoReturn getUserInfoFinished(GJUserScore* info) {
ProfilePage::getUserInfoFinished(info);
m_usernameLabel->setString(info->m_userName.c_str());
m_usernameLabel->limitLabelWidth(info->m_modBadge > 0 ? 140.f : 160.0f, 0.8f, 0.0f);
ProfilePage::getUserInfoFinished(info);
}
};