Profile picture fixes

This commit is contained in:
Lumaa 2024-02-12 12:28:51 +01:00
parent fc869c50c7
commit 5726da53f8
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ struct ProfilePicture: View {
}
var cornerRadius: CGFloat {
return pref.profilePictureShape == .circle ? (50 / 2) : 10.0
return pref.profilePictureShape == .circle ? (size / 2) : 10.0
}
init(url: URL) {

View File

@ -345,7 +345,7 @@ struct ProfileView: View {
}
var profilePicture: some View {
ProfilePicture(url: account.avatar, size: biggerPicture ? 300 : 50)
ProfilePicture(url: account.avatar, size: biggerPicture ? 300 : 75)
.matchedGeometryEffect(id: animPicture, in: accountAnims)
.onTapGesture {
withAnimation(animPicCurve) {