feat: 优化一点点

This commit is contained in:
jinyaqiu 2025-08-22 14:53:36 +08:00
parent 5a784e7ae7
commit bf0f6acffc
2 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ struct UserInfo: View {
.fill(Color.themePrimary)
)
}
.padding(.horizontal)
.padding(.horizontal, 32) //
.padding(.bottom, isKeyboardVisible ? 20 : 40)
.disabled(showUsername && userName.trimmingCharacters(in: .whitespaces).isEmpty)
.opacity((showUsername && userName.trimmingCharacters(in: .whitespaces).isEmpty) ? 0.6 : 1.0)